SDL compiling errors

You asked for my errors, this wont end well.
I’m using the development library of SDL, newest version. Compiling like so

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

with nothing in the program but SDL_Init(INIT_VIDEO_MODE) and SDL_Quit().
This is what I get:

/usr/lib/libSDL.a(SDL_dgavideo.lo)(.text+0x69a): In function
DGA_VideoInit': : undefined reference toXCloseDisplay’
/usr/lib/libSDL.a(XF86DGA.lo)(.text+0x699): In function
SDL_XF86DGASetVidPage': : undefined reference toXSync’
/usr/lib/libSDL.a(XF86DGA.lo)(.text+0x966): In function
SDL_XF86DGAViewPortChanged': : undefined reference to_XReply’
/usr/lib/libSDL.a(Xinerama.lo)(.text+0x546): In function
SDL_XPanoramiXGetScreenSize': : undefined reference to_XReply’
/usr/lib/libSDL.a(Xinerama.lo)(.text+0x8bf): In function
SDL_XineramaQueryScreens': : undefined reference to_XEatData’
/usr/lib/libSDL.a(XF86DGA2.lo)(.text+0x1495): In function
SDL_XDGACreateColormap': : undefined reference to_XFlush’
/usr/lib/libSDL.a(XF86DGA2.lo)(.text+0x11f5): In function
SDL_XDGAGetViewportStatus': : undefined reference to_XReply’
/usr/lib/libSDL.a(XF86DGA2.lo)(.text+0x59b): In function
SDL_XDGAOpenFramebuffer': : undefined reference to_XRead’
/usr/lib/libSDL.a(XF86VMode.lo)(.text+0x26a2): In function
SDL_XF86VidModeGetGammaRamp': : undefined reference to_XRead’

Sorry to spam, but that isn’t even 1/300th of what they were. Any help now?

///////////
// Leo //
///////////_________________________________________________________________
Cell phone ?switch? rules are taking effect ? find out more here.
http://special.msn.com/msnbc/consumeradvocate.armx

Leo . wrote:

You asked for my errors, this wont end well.
I’m using the development library of SDL, newest version. Compiling like so

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.> with nothing in the program but SDL_Init(INIT_VIDEO_MODE) and SDL_Quit().

This is what I get:

/usr/lib/libSDL.a(SDL_dgavideo.lo)(.text+0x69a): In function
DGA_VideoInit': : undefined reference toXCloseDisplay’
/usr/lib/libSDL.a(XF86DGA.lo)(.text+0x699): In function
SDL_XF86DGASetVidPage': : undefined reference toXSync’
/usr/lib/libSDL.a(XF86DGA.lo)(.text+0x966): In function
SDL_XF86DGAViewPortChanged': : undefined reference to_XReply’
/usr/lib/libSDL.a(Xinerama.lo)(.text+0x546): In function
SDL_XPanoramiXGetScreenSize': : undefined reference to_XReply’
/usr/lib/libSDL.a(Xinerama.lo)(.text+0x8bf): In function
SDL_XineramaQueryScreens': : undefined reference to_XEatData’
/usr/lib/libSDL.a(XF86DGA2.lo)(.text+0x1495): In function
SDL_XDGACreateColormap': : undefined reference to_XFlush’
/usr/lib/libSDL.a(XF86DGA2.lo)(.text+0x11f5): In function
SDL_XDGAGetViewportStatus': : undefined reference to_XReply’
/usr/lib/libSDL.a(XF86DGA2.lo)(.text+0x59b): In function
SDL_XDGAOpenFramebuffer': : undefined reference to_XRead’
/usr/lib/libSDL.a(XF86VMode.lo)(.text+0x26a2): In function
SDL_XF86VidModeGetGammaRamp': : undefined reference to_XRead’

Sorry to spam, but that isn’t even 1/300th of what they were. Any help
now?

///////////
// Leo //
///////////


Cell phone ?witch? rules are taking effect ? find out more here.
http://special.msn.com/msnbc/consumeradvocate.armx


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Douglas Jerome <@Douglas_Jerome>
http://www.backstep.org
http://www.globalcrossing.net/~jerome