All my open GL code that uses the glut library fails to link
under RH 9.0. It works fine under RH 8.0.
Lib glut can't find some basic X functions. Does anyone know
where there are found or what the correct library to link with
-lglut is?
g++ *.cpp -o x -lGL -lGLU -lglut
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XGetExtensionVersion'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XFreeDeviceList'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XQueryDeviceState'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XListInputDevices'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XFreeDeviceState'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XOpenDevice'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XmuLookupStandardColormap'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XSelectExtensionEvent'
collect2: ld returned 1 exit status
RH 9.0 knows a little about the missing functions. For example
'man XOpenDevice' works just fine.
The problem is not related to c++. I have the same problem
under c.
Please copy all responses to my gblair RemoveThis @sympatico.ca email address.
Thanks,
Greg Blair
Toronto