[ODE] trouble compiling on mandrake 8.1
Bjorn Hansen
bhansen at uvic.ca
Mon Apr 15 23:57:01 2002
On Monday 15 April 2002 11:42 pm, Frédéric Marmond wrote:
> gcc2.x and gcc3.x don't use the same reference schem for
> linking stage.
> So, you may need to compile all components of your
> project with the same version of gcc, and then, link them.
>
> here, ode/test/test_chain2.o, lib/libode.a and
> lib/libdrawstuff.a must be recompiled with the same
> compilator, and linked with the same version of gcc.
I'm afraid I don't quite understand what you mean here. I didn't build
anything with a different version, all of it was using gcc3.0.1
>
> May i suggest you to upgrade your gcc3.0.1 to gcc3.0.4 at
> least. This newest version fixes some bugs and
> optimisations (3.0.1 had few problems).
>
> regards
>
> Frederic Marmond
>
> > ---------- Initial message -----------
> >
> > From : ode-admin@q12.org
> > To : ode@q12.org
> > Cc :
> > Date : Mon, 15 Apr 2002 15:47:27 -0700
> > Subject : [ODE] trouble compiling on mandrake 8.1
> >
> > Hey, I"m having trouble getting the tests to compile on
>
> mandrake linux 8.1 with gcc 3.0.1. I get the same errors
> with
>
> > both the cvs and the 0.03 release. make ode-lib and
>
> make drawstuff-lib both seem to compile fine, but ode-
> test and
>
> > drawstuff-test both produce the errors below. Any
>
> ideas what my problem might be?
>
> > gcc -o ode/test/test_chain2.exe ode/test/test_chain2.o
>
> lib/libode.a lib/libdrawstuff.a -L/usr/X11R6/lib -
> L/usr/X11/lib -L/usr/lib/X11R6 -L/usr/lib/X11 -lX11 -lGL -
> lGLU -lm
>
> > lib/libdrawstuff.a(drawstuff.o): In function
>
> `Image::Image(char*)':
> > drawstuff.o(.text+0x24b): undefined reference to
>
> `operator new[](unsigned)'
>
> > lib/libdrawstuff.a(drawstuff.o): In function
>
> `Image::Image(char*)':
> > drawstuff.o(.text+0x3eb): undefined reference to
>
> `operator new[](unsigned)'
>
> > lib/libdrawstuff.a(drawstuff.o): In function
>
> `Texture::Texture(char*)':
> > drawstuff.o(.text+0x50c): undefined reference to
>
> `operator new(unsigned)'
>
> > lib/libdrawstuff.a(drawstuff.o): In function
>
> `Texture::Texture(char*)':
> > drawstuff.o(.text+0x63c): undefined reference to
>
> `operator new(unsigned)'
>
> > lib/libdrawstuff.a(drawstuff.o): In function
>
> `Texture::~Texture()':
> > drawstuff.o(.text+0x77a): undefined reference to
>
> `operator delete(void*)'
>
> > lib/libdrawstuff.a(drawstuff.o): In function
>
> `Texture::~Texture()':
> > drawstuff.o(.text+0x7ba): undefined reference to
>
> `operator delete(void*)'
>
> > lib/libdrawstuff.a(drawstuff.o): In function
>
> `dsStartGraphics(int, int, dsFunctions*)':
> > drawstuff.o(.text+0x1f23): undefined reference to
>
> `operator new(unsigned)'
>
> > drawstuff.o(.text+0x1f56): undefined reference to
>
> `operator new(unsigned)'
>
> > drawstuff.o(.text+0x1f89): undefined reference to
>
> `operator new(unsigned)'
>
> > lib/libdrawstuff.a(drawstuff.o): In function
>
> `dsStopGraphics()':
> > drawstuff.o(.text+0x1fca): undefined reference to
>
> `operator delete(void*)'
>
> > drawstuff.o(.text+0x1fe8): undefined reference to
>
> `operator delete(void*)'
>
> > drawstuff.o(.text+0x2006): undefined reference to
>
> `operator delete(void*)'
>
> > lib/libdrawstuff.a(drawstuff.o): In function
>
> `Image::~Image()':
> > drawstuff.o(.text+0x4b6): undefined reference to
>
> `operator delete[](void*)'
>
> > lib/libdrawstuff.a(drawstuff.o): In function
>
> `Image::~Image()':
> > drawstuff.o(.text+0x4e6): undefined reference to
>
> `operator delete[](void*)'
>
> > collect2: ld returned 1 exit status
> > make: *** [ode/test/test_chain2.exe] Error 1
> > _______________________________________________
> > ODE mailing list
> > ODE@q12.org
> > http://q12.org/mailman/listinfo/ode
>
> --------------
> Profitez des 2 offres exceptionnelles Tiscali !
> "Internet Gratuit le Jour" et "Modem ADSL remboursé"
> Cliquez ici, http://register.tiscali.fr/forfaits_ls/
> Offres soumises à conditions.