[sourcecpp]
if(Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 1024)==-1) {
fprintf(stderr,"No audio opened", Mix_GetError());
return 1;
}
sdl audio linker error
Hello again. I am getting a weird linker error for sdl_mixer code. The code is:
I get a error stating:[Linker error] undefined reference to `Mix_OpenAudio'
I have already included sdl_mixer.h at the top of the file. Does anybody have any idea why I am getting this linker error? Thanks.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement