This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Changing Default Linking options...
- To: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Subject: Re: Changing Default Linking options...
- From: Sean R Melody <srm765 at merle dot acns dot nwu dot edu>
- Date: Sat, 12 Jun 1999 18:40:00 -0500 (CDT)
- cc: egcs at egcs dot cygnus dot com
On 12 Jun 1999, Alexandre Oliva wrote:
> On Jun 12, 1999, Sean R Melody <srm765@merle.acns.nwu.edu> wrote:
>
> > Perhaps I should clarify this further. If I g++ helloworld.cc, it will
> > compile and link,
>
> Which means it *is* linked with libstdc++.
Ahh..you're right...good point :)
>
> > but if you run it, it will segfault. If I use ldd to check what
> > libraries it is linked against, it does not include libstdc++.
>
> Looks like it's linked statically, with the wrong version of
> libstdc++. Look for libstdc++.a in the directories searched for
> libraries, and make sure it is not pointing to an old version of
> libstdc++.
Ok, I only have one libstdc*.a, and that is in /usr/lib, it is
libstdc++-2-libc6.1-1.2.9.a
/usr/lib/libstdc++.so is linked to /usr/lib/libstdc++-2-libc6.1-1.2.9.0.so
/usr/lib is first in /etc/ld.so.conf
Where should I go from here?
thanks again,
Sean