public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: david.keegan@marconi.com To: gcc-gnats@gcc.gnu.org Subject: c++/4511: Link option -shared-libgcc option REQUIRED on Solaris? Date: Tue, 09 Oct 2001 05:16:00 -0000 [thread overview] Message-ID: <20011009121540.16703.qmail@sourceware.cygnus.com> (raw) >Number: 4511 >Category: c++ >Synopsis: Link option -shared-libgcc option REQUIRED on Solaris? >Confidential: no >Severity: serious >Priority: high >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Oct 09 05:16:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: David Keegan >Release: gcc-3.0.1 >Organization: >Environment: Solaris 5.7 >Description: Info says the effect of -shared-gcclib should be the default when linking a C++ main program (only the shared version libgcc_s.so is installed by gmake-install). Sometimes I find I have to specify -shared-libgcc explicitly to avoid undefined symbols in libstdc++ at link time gcc -v indicates that -lgcc is passed to collect2 unless I specify -shared-libgcc. But no libgcc.a is installed, only libgcc_s.so. >How-To-Repeat: Simple HelloWorld C++ program using cout. Compile with gcc -v. Note that "-lgcc" is passed to collect2 rather than "-lgcc_s" unless -shared-ligcc is passed. It results in undefined symbol errors at link time in some cases. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2001-10-09 5:16 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-10-09 5:16 david.keegan [this message] 2002-03-26 22:26 rth 2002-04-23 0:46 rth
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=20011009121540.16703.qmail@sourceware.cygnus.com \ --to=david.keegan@marconi.com \ --cc=gcc-gnats@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: linkBe 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).