[SDL] Re: SDL compiling errors

Douglas Jerome jerome at globalcrossing.net
Sat Dec 6 21:19:01 PST 2003


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 to `XCloseDisplay'
> /usr/lib/libSDL.a(XF86DGA.lo)(.text+0x699): In function 
> `SDL_XF86DGASetVidPage':
> : undefined reference to `XSync'
> /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 <jerome at globalcrossing.net>
http://www.backstep.org
http://www.globalcrossing.net/~jerome
http://hackerlabs.sourceforge.net





More information about the SDL mailing list