X11 Lib error?

g++ -o test test.cpp sdl-config --libs --cflags

Some how you are not linking with some X11 libraries; I use something like:
g++ -o test test.cpp -L/usr/X11R6/lib sdl-config --cflags --libs

PS if there are hosed characters in this, I’m sorry. My system is
whacked in the fonts.
Ok, I tried that, but ended up with the same errors. I know that its a
problem with X something, but the file /usr/lib/X11@ is there, if thats
supposed to link to the X11R6 library. It says undefined reference to
something in the SDL library, and all I’m doing is initialized sdl video!
Any other ideas?

///////////
// Leo //
///////////_________________________________________________________________
Our best dial-up offer is back. Get MSN Dial-up Internet Service for 6
months @ $9.95/month now! http://join.msn.com/?page=dept/dialup

Leo . wrote:

g++ -o test test.cpp sdl-config --libs --cflags

Some how you are not linking with some X11 libraries; I use something
like:
g++ -o test test.cpp -L/usr/X11R6/lib sdl-config --cflags --libs

PS if there are hosed characters in this, I’m sorry. My system is
whacked in the fonts.

Ok, I tried that, but ended up with the same errors. I know that its
a problem with X something, but the file /usr/lib/X11@ is there, if
thats supposed to link to the X11R6 library. It says undefined
reference to something in the SDL library, and all I’m doing is
initialized sdl video! Any other ideas?

Are you sure your SDL instal is correct ? Did you compile it by yourself
or did you install it using mandrake’s packaging system ? Usually a
simple “urpmi libSDL-devel” will do and you will have a correctly setup
SDL devel environment.

Stephane