Changing Default Linking options...
Alexandre Oliva
oliva@dcc.unicamp.br
Sat Jun 12 16:22:00 GMT 1999
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++.
> 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++.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists
More information about the Gcc
mailing list