This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: weird segfaults @ g++2.8.1, weird mis-linking egcs 1.1



>   Sender: oliva@dcc.unicamp.br
>   Cc: egcs-bugs@cygnus.com, ...
>   From: Alexandre Oliva <oliva@dcc.unicamp.br>
>   Date: 12 Oct 1998 09:54:02 -200

>  Believe me, it is a simplification of your testcase, that I'm
Nice, thanks!

>   > .../egcs/Solaris/bin/g++ -g -Wl,-R.../egcs/Solaris/lib 
>       -o sp.new sp.o tpl.o 2>&1 | \
>   > 	tee link.err | /home/seg/yotam/build/egcs/Solaris/bin/c++filt
>   > sp.o: In function `WbReferenceCount::unique(void) const':
>   > .../WbPointer.hh:16: undefined reference to 
>       `ostream::operator<<(ostream &(*)(ostream &))'
>   > .../WbPointer.hh:16: undefined reference to 
>       `ostream::operator<<(ostream &(*)(ostream &))'
>
>   I couldn't reproduce this problem; are you sure it doesn't have
>   anything to do with a wrong library path?

As I subsequently posted, with egcs-1.1 I mistakenly compiled
my case without -fsqaungle as I did for building libstdc++.
Once I compiled it with -fsqaungle it linked well
and produced the same segmentation fault as with g++-2.8.1.

By the way, I think the _source_ reference given by the
'undefined reference' error could be improved.

>   Alexandre Oliva

-- yotam


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]