Hi,
I try to install gle-3.0.7 on my linux slackware 8.0
with gcc 3.0.4
The configure says :
[...]
checking for glGetError in -lGL... yes
checking for gluNewQuadric in -lGLU... no
configure: error: Cannot find required GLU library
but I have the GLU library installed.
So i look to the config.log and here is the problem :
configure:6775: checking for glGetError in -lGL
configure:6794: gcc -o conftest -g -O2 -Wall
conftest.c -lGL -lSM -lICE -lXmu -L/usr/X11R6/lib
-lX11 -lm 1>&5
configure:6817: checking for gluNewQuadric in -lGLU
configure:6836: gcc -o conftest -g -O2 -Wall
conftest.c -lGLU -lSM -lICE -lGL -lXmu
-L/usr/X11R6/lib -lX11 -lm 1>&5
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/../../../libGLU.so:
undefined reference to `operator new[](unsigned)'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/../../../libGLU.so:
undefined reference to `vtable for
__cxxabiv1::__si_class_type_info'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/../../../libGLU.so:
undefined reference to `operator delete(void*)'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/../../../libGLU.so:
undefined reference to `__gxx_personality_v0'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/../../../libGLU.so:
undefined reference to `__cxa_pure_virtual'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/../../../libGLU.so:
undefined reference to `vtable for
__cxxabiv1::__class_type_info'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/../../../libGLU.so:
undefined reference to `operator delete[](void*)'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/../../../libGLU.so:
undefined reference to `vtable for
__cxxabiv1::__vmi_class_type_info'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/../../../libGLU.so:
undefined reference to `operator new(unsigned)'
collect2: ld returned 1 exit status
configure: failed program was:
#line 6825 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an
error. */
/* We use char because int might match the return type
of a gcc2
builtin and then its argument prototype would still
apply. */
char gluNewQuadric();
int main() {
gluNewQuadric()
; return 0; }
It would be great if you could help me with this !
Best regards,
Pierre.
Logged In: YES
user_id=11545
Looks like your libGLU has C++ code in it (I'm surprised
by this). If you add -lg++ to the link line, does it fix
the problem?
Logged In: NO
In fact I don't have any libg++ on my system, so it won't
work...
Logged In: YES
user_id=11545
You need to have C++ installed (e.g. to get the libstdc++
that contains operator new[])