[lug] RH 9.x and g++ compiles
Michael J. Hammel
mjhammel at graphics-muse.org
Sat May 31 19:06:40 MDT 2003
I'm not a C++ person, so maybe this is an obvious thing. I've got a
program that compiles under RH 7.x using g++. It doesn't build on RH
9.x because its missing a bunch of functions ("operator
new(unsigned)", for example). It seems like I'm not linking with some
standard c++ library. This happened automagically with 7.x. Is there
something extra I need to do in 9.x?
Here is the partial output from the start of the build. As you can see,
it fails in the linking phase.
c++ -m32 -g -Wall -c -O2 `gimptool --cflags` `gimptool --cflags` -c -o
gcc -m32 -o fixer fixer.o `gimptool --libs`
fixer.o(.text+0x5c): In function `operator+(Patch const&, Patch
/home/mjhammel/src/graphics/gimp/GFXMuseToolsCD/FreeTools/std/multifile/fixer-0.2/fixer.cc:58: undefined reference to `operator new(unsigned)'
fixer.o(.text+0x7e):/home/mjhammel/src/graphics/gimp/GFXMuseToolsCD/FreeTools/std/multifile/fixer-0.2/fixer.cc:58: undefined reference to `operator delete(void*)'
Michael J. Hammel |
The Graphics Muse | Books we'll never see:
mjhammel at graphics-muse.org | "George Foreman's Big Book of Baby Names"
More information about the LUG