Hi,
I use codeblocks under OpenSuse-11.2.
I am learning how to program C and use SDL.
SDL was installed and in Yast, I can see :
libSDL-1.2.13 and its devel,
libSDL_image-1.2.7 and its devel.
In Codeblocks, through Project/Build options/Linker settings tab, I added
/usr/include/SDL/SDL.h
/usr/include/SDL/SDL_image.h
My program starts with
#include <stdio.h>
#include <stdlib.h>
#include </usr/include/SDL/SDL.h>
#include </usr/include/SDL/SDL_image.h>
When it comes to
flower=IMG_Load ("flower.png");
I get the error
"undefined reference to 'IMG_Load' "
which means, I think, that SDL_image library is not found.
I don't understand why.
(there is no SDL_image.lib on my system. Is this normal?)
Any hint?