Help cross compiling sdl_image

hello all,
I am trying to cross compile SDL_image with my
program.
I develop on linux using mingw.

here are the two lines I use for cross compiling

SDLHX=-I/usr/src/SDL-1.2.3-cross/i386-mingw32msvc/include/SDL/
-I/usr/src/SDL_image-1.2.1/
SDLX=-L/usr/src/SDL-1.2.3-cross/i386-mingw32msvc/lib/
-lmingw32
-lSDLmain -lSDL -luser32 -lgdi32 -lwinmm
-ldxguid -mwindows

I compile using SDLHX. When I try to link it fails.
Complaining of undefined ref. to SDL_img or IMG_Load
have added the following flags in numerous
combinations:
SDLI=-L/usr/local/lib -lSDL_image

I have also tried compiling SDL_image with mingw-g++
and it also fails.

I just want to link with SDL_image to create a win
binary. the linux version is no problem. Does anyone
know how to do this?

You can see an old .tgz at aslla.sourceforge.net

thanks
andy__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax