Linux->windows cross compiling troubles

Hi,
Today I tried to set up cross compiling from linux to windows. I
used the build script linked from the SDL Xmingw32 page. I had to
manually run the ranlib included on the SDL libraries (libSDL.a and
libSDLmain.a) and that got rid of most errors except these:
undefined reference to SDL_RWFromFile and undefined reference toSDL_LoadBMP_RW

each time i call SDL_LoadBMP().

sdl-config gives me:
-L/usr/local/cross-tools/i386-mingw32/lib -lmingw32 -lSDLmain -lSDL
-luser32 -lgdi32 -lwinmm -mwindows

any ideas what is wrong? all help is appreciated :slight_smile:
-Sam Reynolds

Well I managed to answer my own question (i love when that happens)…
For those interested the solution was that sdl-config (the win32 compiled
one) wasn’t adding the lib for me… i had to manually add libSDL.a
-Sam ReynoldsOn Tue, 27 Jun 2000, Sam Reynolds wrote:

Hi,
Today I tried to set up cross compiling from linux to windows. I
used the build script linked from the SDL Xmingw32 page. I had to
manually run the ranlib included on the SDL libraries (libSDL.a and
libSDLmain.a) and that got rid of most errors except these:
undefined reference to SDL_RWFromFile and undefined reference toSDL_LoadBMP_RW

each time i call SDL_LoadBMP().

sdl-config gives me:
-L/usr/local/cross-tools/i386-mingw32/lib -lmingw32 -lSDLmain -lSDL
-luser32 -lgdi32 -lwinmm -mwindows

any ideas what is wrong? all help is appreciated :slight_smile:
-Sam Reynolds