Can't compile in cygwin

I created a simple program to test the window capabilities of SDL, but I
think I must’ve forgotten something in cygwin’s installation… I get the
following errors:

/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x6b):tut1.cpp: undefined
reference to
_SDL_Init' /cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x8a):tut1.cpp: undefined reference to_SDL_GetError’
/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0xd3):tut1.cpp: undefined
reference to
_SDL_SetVideoMode' /cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0xf7):tut1.cpp: undefined reference to_SDL_GetError’
/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x121):tut1.cpp: undefined
reference t
o _SDL_Quit' /cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x15a):tut1.cpp: undefined reference t o_SDL_LockSurface’
/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x186):tut1.cpp: undefined
reference t
o `_SDL_UnlockSurface’
collect2: ld returned 1 exit status

Unfortunately, I can’t install SDL in cygwin, because it doesn’t have rpm
capabilities. :-/

Granoblastic Man wrote:

I created a simple program to test the window capabilities of SDL, but I
think I must’ve forgotten something in cygwin’s installation… I get the
following errors:

/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x6b):tut1.cpp: undefined
reference to
_SDL_Init' /cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x8a):tut1.cpp: undefined reference to_SDL_GetError’
/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0xd3):tut1.cpp: undefined
reference to
_SDL_SetVideoMode' /cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0xf7):tut1.cpp: undefined reference to_SDL_GetError’
/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x121):tut1.cpp: undefined
reference t
o _SDL_Quit' /cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x15a):tut1.cpp: undefined reference t o_SDL_LockSurface’
/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x186):tut1.cpp: undefined
reference t
o `_SDL_UnlockSurface’
collect2: ld returned 1 exit status

Unfortunately, I can’t install SDL in cygwin, because it doesn’t have rpm
capabilities. :-/

Use the MinGW binaries. Do a google search for more information on the
topic. OK, tomorrow, if I find the time, I finally promise to get around
to the scripts I’ve promised several people to get SDL/Cygwin working
together nicely. It’s so much of a pain, and shouldn’t be.

Granoblastic Man wrote:

I created a simple program to test the window capabilities of SDL, but I
think I must’ve forgotten something in cygwin’s installation… I get
the

following errors:

/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x6b):tut1.cpp: undefined
reference to
_SDL_Init' /cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x8a):tut1.cpp: undefined reference to_SDL_GetError’
/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0xd3):tut1.cpp: undefined
reference to
_SDL_SetVideoMode' /cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0xf7):tut1.cpp: undefined reference to_SDL_GetError’
/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x121):tut1.cpp: undefined
reference t
o _SDL_Quit' /cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x15a):tut1.cpp: undefined reference t o_SDL_LockSurface’
/cygdrive/c/WINDOWS/TEMP/cc2VGnNE.o(.text+0x186):tut1.cpp: undefined
reference t
o `_SDL_UnlockSurface’
collect2: ld returned 1 exit status

Unfortunately, I can’t install SDL in cygwin, because it doesn’t have
rpm

capabilities. :-/

Use the MinGW binaries. Do a google search for more information on the
topic. OK, tomorrow, if I find the time, I finally promise to get around
to the scripts I’ve promised several people to get SDL/Cygwin working
together nicely. It’s so much of a pain, and shouldn’t be.

SDL-devel-1.2.5a-mingw32.tar.gz, correct? I found a reference to an old
message by Mark K. Kim here
(http://www.libsdl.org/pipermail/sdl/2002-March/042857.html), and followed
the directions step-by-step, yet it still has those derned linking errors.
:-/From: calvin@ironfroggy.com (Calvin Spealman)
To:
Sent: Monday, February 17, 2003 11:48 PM
Subject: [SDL] Re: Can’t compile in cygwin…

Hi there,

about your problems. I had the same untill i installed CygWin again…
and this time i choose as compiler the GCC-mingw compiler. You should
be able to choose this one in the devel-packages, you need even the
automake, autoconf and make utilitys. After installing cygwin i
compiled SDL with it ( ./configure --prefix=/usr && make && make
install ).

Now you need to copy the sdl.dll file to a place where you need it.
And after this you should be able to compile your SDL program.

Oky i hope i could help…

bye bye Steffen.–

Steffen Pohle (@Steffen_Pohle)
http://stpohle.bei.t-online.de
JabberID: stpohle at amessage.de
ICQ: 370965 Yahoo: stpohle
MSN: stpohle at hotmail.com