[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

GLX and undefined references



I want to compile a tutorial from gamedev.net -> exactly this link: http://nehe.gamedev.net/tutorials/linuxglx/lesson06.tar.gz
I get a lot of undefined references like:

F86VidModeGetGammaRamp':
: undefined reference to `_XReply'
/usr/X11R6/lib/libXxf86vm.a(XF86VMode.o)(.text+0x23d8): In function `X                     F86VidModeGetGammaRamp':
: undefined reference to `_XRead'
/usr/X11R6/lib/libXxf86vm.a(XF86VMode.o)(.text+0x23eb): In function `X                     F86VidModeGetGammaRamp':
: undefined reference to `_XRead'
/usr/X11R6/lib/libXxf86vm.a(XF86VMode.o)(.text+0x2401): In function `X                     F86VidModeGetGammaRamp':
: undefined reference to `_XRead'
/usr/X11R6/lib/libXxf86vm.a(XF86VMode.o)(.text+0x2470): In function `X                     F86VidModeGetGammaRampSize':
: undefined reference to `XMissingExtension'
/usr/X11R6/lib/libXxf86vm.a(XF86VMode.o)(.text+0x24a5): In function `X                     F86VidModeGetGammaRampSize':
: undefined reference to `_XFlush'
/usr/X11R6/lib/libXxf86vm.a(XF86VMode.o)(.text+0x24df): In function `X                     F86VidModeGetGammaRampSize':
: undefined reference to `_XReply'

Im using the xserver-xfree86-dri-trunk package for my ATI 7500 3D Hardware
acceleration (urks). I don't believe that the package will do the undefined
references. I compile with:

 gcc lesson06.c -o lesson06 -L/usr/X11R6/lib -lGL -lGLU -lXxf86vm

Im loading the glx package with no problems on startup. 

If someone has an idea, please let me know.

Thanks!!

Roman
-- 
www: http://www.romanofski.de
email: romanjoost@gmx.de



Reply to: