The title basically says what my issue is and I have searched and I have tried different methods of solving the problem, however...no luck.
I am using Ubuntu 10.10 (Maverick) ...Kernal 2.6.35-30-Generic for the techies.
I am using the Code::Blocks supplied with the repository. 10.05
Yesterday (yes this is an odd problem) using LazyFoo's tutorial, I compiled a program using SDL/SDL_image.h, specifically the BMP loader and that works fine (I believe it still does).
Unfortunately, when I try to use IMG_Load, it comes back with an undefined reference. (I have copied and pasted his tutorial line for line). I'm not entirely sure what I've done wrong, or what is happening but it (Code::Blocks or the compiler) doesn't seem to be recognising SDL_image.h in the slightest.
I've tried adding things to the Other Options under compiler settings and no joy, I have also tried adding items under the linker settings in other linker options. Again, nothing seemed to make a difference.
I made sure to reinstall the relevant library. Here is the the tutorial I have used:
http://lazyfoo.net/SDL_tutorials/lesson04/index.phpCould someone explain what I'm doing wrong or what I need to change as I thought Code::Blocks would recognise the library files on its own.