[ODE] Re: trouble compiling on mandrake 8.1
Bjorn Hansen
bhansen at uvic.ca
Sat Apr 20 21:29:01 2002
On Tuesday 16 April 2002 06:10 am, Ruud van Gaal wrote:
> > 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
>
> ...
>
> > drawstuff.o(.text+0x1f56): undefined reference to `operator
> > new(unsigned)'
>
> Maybe you need to use 'g++'? Seems like a standard C++ library isn't
> linked, and g++ may call with call the linker with appropriate flags.
>
> Ruud
I'm really interested in having the makefile work, not compiling stuff
individuall, and since there are plain C files in the sourcetree as well, it
doesn't work at all to put g++ as the compiler, this produces errors
immediately. with gcc at least the lib componants compile, just not the
tests.