SDL_image dll compiling problems in win98

I tried to compile SDL_image 1.2.0 from the source using Dev-C++ ( port of gcc/g++ w/ mingw32 ) the linker gives these errors:

c:\dev-c++\sdl_image-1.2.0\img.o(.text+0x3f):img.c: undefined reference to SDL_RWFromFile' c:\dev-c++\sdl_image-1.2.0\img.o(.text+0x1b4):img.c: undefined reference toSDL_SetError’
c:\dev-c++\sdl_image-1.2.0\img.o(.text+0x307):img.c: undefined reference to `SDL_SetError’
Warning: no export definition file provided
dllwrap will create one, but may not be what you want
c:\dev-c++\bin\dllwrap: gcc exited with status 1

I never had problems with the earlier versions… did I break SDL when I installed 1.2.2?

Thanks for the help.