Problems compiling SDL_image

Hello !

When compiling SDL_image with CYGWIN
i get the following error :

Creating library file: .libs/libSDL_image.dll.a
.libs/IMG_bmp.o(.text+0x6c2): In function LoadBMP_RW': /home/wizard/code/SDL/SDL_image/IMG_bmp.c:379: undefined reference to_SDL_Erro
r’
.libs/IMG_bmp.o(.text+0xa51):/home/wizard/code/SDL/SDL_image/IMG_bmp.c:187:
unde
fined reference to `_SDL_Error’
collect2: ld returned 1 exit status
make: *** [libSDL_image.la] Error 1

CU