Try putting -lSDL_image at the top. The problem is you are trying to use IMG_Load(), which is defined in SDL_Image. The linker can be a bit stupid with Code::Blocks, so you might have to rearrange the options.
Also, I don't see a need for SDL_image.lib to be in you output directory.
Show differencesHistory of post edits
#2bluehailex
Posted 07 August 2012 - 04:42 PM
Sometimes the order of your linker options can make a difference. Try putting -lSDL_image at the top. The problem is you are trying to use IMG_Load(), which is defined in SDL_Image. The linker can be a bit stupid with Code::Blocks, so you might have to rearrange the options.
Also, I don't see a need for SDL_image.lib to be in you output directory.
Also, I don't see a need for SDL_image.lib to be in you output directory.
#1bluehailex
Posted 07 August 2012 - 04:41 PM
Sometimes the order of your linker options can make a difference. Try putting -lSDL_image at the top. The problem is you are trying to use IMG_Load(), which is defined in SDL_Image. The linker can be a bit stupid with Code::Blocks, so you might have to rearrange the options.