Original Post
Ok so I've been trying to get SDL_image to work in Code::Blocks for the past 2 days to no avail.
I've followed both Lazyfoo's tutorial and this convieniant video tutorial. But I just keep getting the same error:
"undefined reference to `IMG_Load' "
I have the SDL_image.h in the include folder, where all the headers are.
I have SDL_image.lib in the lib folder, where all the .a files are.
I have in my linker options: -lmingw32 -lSDLmain -lSDL -lSDL_image
I have in my code: #include "SDL/SDL_image.h" (as well as including SDL itself)
And then I simply try "IMG_Load("anything.png")" and I get that error. Is there any reason why I would be getting this?
Any help would be appreciated, thanks!
I've followed both Lazyfoo's tutorial and this convieniant video tutorial. But I just keep getting the same error:
"undefined reference to `IMG_Load' "
I have the SDL_image.h in the include folder, where all the headers are.
I have SDL_image.lib in the lib folder, where all the .a files are.
I have in my linker options: -lmingw32 -lSDLmain -lSDL -lSDL_image
I have in my code: #include "SDL/SDL_image.h" (as well as including SDL itself)
And then I simply try "IMG_Load("anything.png")" and I get that error. Is there any reason why I would be getting this?
Any help would be appreciated, thanks!
