This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: is it just me?! (resolved!); compile fails on alpha!
> $g++ -v -fhonor-std hello.cc
thanks, this did the trick. obviously i missed the combination of g++
with -fhonor-std. silly me!
but what's the rationale behind gcc not linking libstdc++ if it
compiles c++? after all, it automagically links against the c
standard library if compiling c...
as i said, i was going to compile libstdc++ on our alpha system
(alphaev56-dec-osf4.0d). unfortunately, it failed, seemingly due to a
conflict in the complex math function prototypes between the digital
headers and libstdc++:
Making all in math
/bin/sh ../libtool --mode=compile /home/g/external_sw/src/objdir/gcc/xgcc -B/home/g/external_sw/src/objdir/gcc/ -B~/gcc/alphaev56-dec-osf4.0d/bin/ -DHAVE_CONFIG_H -I. -I../../../../gcc-2.95.2/libstdc++/math -I.. -I.. -I~/gcc/include -g -O2 -c ../../../../gcc-2.95.2/libstdc++/math/signbit.c
rm -f .libs/signbit.lo
/home/g/external_sw/src/objdir/gcc/xgcc -B/home/g/external_sw/src/objdir/gcc/ "-B~/gcc/alphaev56-dec-osf4.0d/bin/" -DHAVE_CONFIG_H -I. -I../../../../gcc-2.95.2/libstdc++/math -I.. -I.. "-I~/gcc/include" -g -O2 -c -DPIC ../../../../gcc-2.95.2/libstdc++/math/signbit.c -o .libs/signbit.lo
In file included from ../../../../gcc-2.95.2/libstdc++/math/mathconf.h:230,
from ../../../../gcc-2.95.2/libstdc++/math/signbit.c:32:
../../../../gcc-2.95.2/libstdc++/math/complex-stub.h:81: conflicting types for `cabs'
/home/g/external_sw/src/objdir/gcc/include/math.h:507: previous declaration of `cabs'
../../../../gcc-2.95.2/libstdc++/math/complex-stub.h:82: conflicting types for `cabsf'
/home/g/external_sw/src/objdir/gcc/include/math.h:522: previous declaration of `cabsf'
*** Exit 1
Stop.
[last 2 lines repeated 4 times]
greeings,
-gerhard
--
| ___ Gerhard Wesp
| \_________|_________/ http://www.cosy.sbg.ac.at/~gwesp
| O Ban Dihydrogen Monoxide, the most dangerous
| chemical known to mankind! --- http://www.dhmo.org