This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Re: SDL tutorials?
- From: Eric McDonald <mcdonald at phy dot cmich dot edu>
- To: Lincoln Peters <sampln at sbcglobal dot net>
- Cc: Xconq list <xconq7 at sources dot redhat dot com>
- Date: Fri, 19 Nov 2004 18:36:00 -0500 (EST)
- Subject: Re: SDL tutorials?
On Fri, 19 Nov 2004, Lincoln Peters wrote:
> The code I've included below generates the following errors:
>
> main.o(.text+0x6d):/home/lincoln/test/main.cpp:44: undefined reference to `SDL_SetVideoMode'
> main.o(.text+0xa8):/home/lincoln/test/main.cpp:57: undefined reference to `SDL_Quit'
> collect2: ld returned 1 exit status
Did you remember to link in the SDL libraries?
g++ main.cpp -o test -lSDL -lSDLmain
or something similar....
Eric