This is the mail archive of the gcc@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: Changing Default Linking options...


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


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