* c++ dynamic linking problem
@ 2000-08-29 19:37 Tom Engle
0 siblings, 0 replies; only message in thread
From: Tom Engle @ 2000-08-29 19:37 UTC (permalink / raw)
To: gcc-help
I've installed gcc-2.95.2, but when I try and compile c++ programs with g++ all I ever get are segfaults when I try to run them, no matter what. They do work if I link with -static, however. I was told that it could be a binary compatibility problem between the libstdc++ being linked with and the one being found at runtime. I've just got the libstdc++ that comes with gcc-2.95.2. How can I go about fixing where programs are finding libstdc++ at run-time?
Tom
Here are the steps I used to install gcc:
root:gcc-build# ../gcc-2.95.2/configure --prefix=/usr \
> --with-gxx-include-dir=/usr/include/g++ \
> --enable-shared
root:gcc-build# make bootstrap
root:gcc-build# make install
And here's a listing of the libstdc++ files in /usr/lib:
/usr/lib% ls -aFl libstdc++*
-rw-r--r-- 1 root root 372608 Jul 14 11:10 libstdc++-3-libc6.1-2-2.10.0.a
-r-xr-xr-x 1 root root 418488 Jul 14 11:10 libstdc++-3-libc6.1-2-2.10.0.so*
lrwxrwxrwx 1 root root 30 Jul 14 11:10 libstdc++-libc6.1-2.a.3 -> libstdc++-3-libc6.1-2-2.10.0.a
lrwxrwxrwx 1 root root 31 Jul 14 11:10 libstdc++-libc6.1-2.so.3 -> libstdc++-3-libc6.1-2-2.10.0.so*
lrwxrwxrwx 1 root root 18 Aug 28 11:50 libstdc++.a.2.10 -> libstdc++.a.2.10.0*
-rwxr-xr-x 1 root root 2074498 Jul 7 00:21 libstdc++.a.2.10.0*
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-08-29 19:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-29 19:37 c++ dynamic linking problem Tom Engle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).