Skip to content

Building a DLL using miniaudio. #419

Answered by mackron
psuong asked this question in Q&A
Jan 24, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

That linking error is happening because you haven't included the implementation of miniaudio anywhere. Add #define MINIAUDIO_IMPLEMENTATION:

#define MINIAUDIO_IMPLEMENTATION
#include "miniaudio.h"

Alternatively, consider using the split version if you'd rather use a traditional .c and .h pair: https://github.com/mackron/miniaudio/tree/master/extras/miniaudio_split

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@psuong
Comment options

@psuong
Comment options

@mackron
Comment options

@psuong
Comment options

Answer selected by psuong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants