Hello, forum. I have been setting up SDL according to the tutorials at lazyfoo.net, and I have been banging my head against an error for the better part of four hours to avail. I've read a number of threads online written by folks with the same problem (Including a recent one here: SDL 'IMG_Load' & Setting Up Extension Libraries), and none of their fixes have worked for me.
I have followed the instructions on lazyfoo to the letter (aside from extracting to a different directory), but I get an "undefined reference to IMG_Load" when I try to use the SDL_image library. (I got the main SDL libraries working perfectly in tutorial 1.) My linker settings are set up to direct codeblocks to the directory with the three SDL .a library files in it, and I can access those three just fine. I have added the file SDL_image.lib to that directory, and tacked -lSDL_image onto the end of my "Other Linker Options" in global compiler settings.
The image header file has been put in with the rest of my SDL .h files, and codeblocks has no difficulty finding that. The only difference between the main libraries and the image library is that the image file is a .lib while the main library files are .a files. (See attached images)
All of my .dll files have been put in the directory with my project.
This has been driving me mad for over a day now. Can anybody see some stupid mistake that I have made?
(I have screen shots of my linker/search directory set up, and where I've stored all of my files)
Thanks, folks.