Compiling under cygwin (using cross-compile)

I just compiled SDL 1.2.2 under cygwin using cross-make and -configure. then I wanted to compile the test programs just like I compiled the libs - but cross-configure returns that it doesn’t find SDL version 1.2.2 - I copied the libs from /usr/local/cros…/lib/ to /lib/ and tried it again, but didn’t work. Then I tried to compile each individual program in the test driectory but the linker reports (only a part of all the errors I got):

.c: undefined reference to SDL_GetError' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x1b7):testjoystick .c: undefined reference toSDL_JoystickIndex’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x1c2):testjoystick
.c: undefined reference to SDL_JoystickName' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x1e8):testjoystick .c: undefined reference toSDL_JoystickIndex’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x20a):testjoystick
.c: undefined reference to SDL_JoystickNumButtons' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x21c):testjoystick .c: undefined reference toSDL_JoystickNumBalls’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x22e):testjoystick
.c: undefined reference to SDL_JoystickNumHats' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x240):testjoystick .c: undefined reference toSDL_JoystickNumAxes’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x28c):testjoystick
.c: undefined reference to SDL_PollEvent' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x444):testjoystick .c: undefined reference toSDL_JoystickNumButtons’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x489):testjoystick
.c: undefined reference to SDL_JoystickGetButton' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x4a7):testjoystick .c: undefined reference toSDL_FillRect’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x4be):testjoystick
.c: undefined reference to SDL_FillRect' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x4d3):testjoystick .c: undefined reference toSDL_UpdateRects’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x500):testjoystick
.c: undefined reference to SDL_FillRect' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x51e):testjoystick .c: undefined reference toSDL_JoystickGetAxis’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x596):testjoystick
.c: undefined reference to SDL_JoystickGetAxis' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x67d):testjoystick .c: undefined reference toSDL_FillRect’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x692):testjoystick
.c: undefined reference to SDL_UpdateRects' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x754):testjoystick .c: undefined reference toSDL_Init’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x765):testjoystick
.c: undefined reference to SDL_GetError' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x794):testjoystick .c: undefined reference toSDL_NumJoysticks’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x7b1):testjoystick
.c: undefined reference to SDL_NumJoysticks' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x7c8):testjoystick .c: undefined reference toSDL_JoystickName’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x822):testjoystick
.c: undefined reference to SDL_JoystickOpen' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x838):testjoystick .c: undefined reference toSDL_GetError’
/cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x87f):testjoystick
.c: undefined reference to SDL_JoystickClose' /cygdrive/c/DOKUME~1/ADMINI~1/LOKALE~1/Temp/ccIJXpG0.o(.text+0x88f):testjoystick .c: undefined reference toSDL_QuitSubSystem’
collect2: ld returned 1 exit status

  • funny, isn’t it? Seems like I’m the only one to get those errors, because there’e no thread on this problem in the maling list archive.

Any help would be apreciated,

Thomas Gahr