[GRASSLIST:4731] Re: opengl compile problem

Eric G. Miller egm2 at jps.net
Mon Oct 14 11:30:52 EDT 2002


On Mon, Oct 14, 2002 at 06:36:33AM -0600, Richard Greenwood wrote:
[snip]
> === configure.log =====================================
> configure:8954: checking for gluBeginCurve in -lGLU
> configure:8971: gcc -o conftest -g -O2    -L/usr/lib -L/usr/X11R6/lib 
> -L/lib/i686 -L/lib  conftest.c -lGLU  -lGL   -L/usr/X11R6/lib  -lSM -lICE 
> -lX11  -lm   1>&5
> /usr/lib/libGLU.so: undefined reference to `operator new[](unsigned)'
> /usr/lib/libGLU.so: undefined reference to `vtable for 
> __cxxabiv1::__si_class_type_info'
> /usr/lib/libGLU.so: undefined reference to `operator delete(void*)'
> /usr/lib/libGLU.so: undefined reference to `__gxx_personality_v0'
> /usr/lib/libGLU.so: undefined reference to `__cxa_pure_virtual'
> /usr/lib/libGLU.so: undefined reference to `vtable for 
> __cxxabiv1::__class_type_info'
> /usr/lib/libGLU.so: undefined reference to `operator delete[](void*)'
> /usr/lib/libGLU.so: undefined reference to `vtable for 
> __cxxabiv1::__vmi_class_type_info'
> /usr/lib/libGLU.so: undefined reference to `operator new(unsigned)'
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 8960 "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 gluBeginCurve();
> 
> int main() {
> gluBeginCurve()
> ; return 0; }
> === end of configure.log ===============================

It appears your libGLU somehow got built as a C++ library.

-- 
static const char signature[] = 
	"Copyright (c) 2002 Eric G. Miller <egm2 at jps.net>";



More information about the grass-user mailing list