Code blocks not linking extension SDL Libraries
- by Code Learner
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!