From: Tom Engle <burrodomo@mail.com>
To: gcc-help@gcc.gnu.org
Subject: c++ dynamic linking problem
Date: Tue, 29 Aug 2000 19:37:00 -0000 [thread overview]
Message-ID: <383266464.967602965267.JavaMail.root@web301-mc.mail.com> (raw)
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
reply other threads:[~2000-08-29 19:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=383266464.967602965267.JavaMail.root@web301-mc.mail.com \
--to=burrodomo@mail.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).