[lug] RH 9.x and g++ compiles

Jeffrey Siegal jbs at quiotix.com
Sat May 31 19:18:57 MDT 2003


Peter Hutnick wrote:
> Michael J. Hammel said:
> 
> 
>>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
>>fixer.o fixer.cc
>>gcc -m32  -o fixer fixer.o `gimptool --libs`
>>fixer.o(.text+0x5c): In function `operator+(Patch const&, Patch
>>const&)':
> 
> 
> Are you (or your make file, or build script, or whatever) using the
> command "gcc" or "g++"?  The command gcc will try to build your C++ file
> as a C file, and /minimally/ fail because the C++ standard library won't
> be available.

I think that is his problem here.  The compile step above uses g++ but 
the link step uses gcc.  Try g++ instead.





More information about the LUG mailing list