Code blocks not linking extension SDL Libraries

Posted by Code Learner on Stack Overflow See other posts from Stack Overflow or by Code Learner
Published on 2013-10-25T09:05:57Z Indexed on 2013/10/25 9:55 UTC
Read the original article Hit count: 123

Filed under:
|

CodeBlocks is not linking extension SDL Libraries like SDL_mixer and SDL_image? I followed Lazy Foo's tutorial for SDL 1.2 but I am compiling my program in SDL 2.0. The compiler is showing an error with the linking of the libraries though without the mixer library it is working.

My linker setting look like this.

//This is working
-lmingw32 -lSDL2main -lSDL2

//But with the additional mixer library it is not working
-lmingw32 -lSDL2main -lSDL2 -lSDL_mixer

Please help!

© Stack Overflow or respective owner

Related posts about c++

Related posts about sdl