public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4511: Link option -shared-libgcc option REQUIRED on Solaris?
@ 2002-03-26 22:26 rth
0 siblings, 0 replies; 3+ messages in thread
From: rth @ 2002-03-26 22:26 UTC (permalink / raw)
To: david.keegan, gcc-bugs, gcc-prs, nobody, rth
Synopsis: Link option -shared-libgcc option REQUIRED on Solaris?
Responsible-Changed-From-To: unassigned->rth
Responsible-Changed-By: rth
Responsible-Changed-When: Tue Mar 26 22:26:51 2002
Responsible-Changed-Why:
.
State-Changed-From-To: open->feedback
State-Changed-By: rth
State-Changed-When: Tue Mar 26 22:26:51 2002
State-Changed-Why:
libgcc.a should be installed in $prefix/lib/gcc-lib/$target/$version/.
If that didn't happen, something's wrong.
That said, note that the shared libgcc default is with the
"g++" driver program, not the "gcc" driver program. A point
of possible confusion that appears to be present in your
problem description.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4511
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/4511: Link option -shared-libgcc option REQUIRED on Solaris?
@ 2002-04-23 0:46 rth
0 siblings, 0 replies; 3+ messages in thread
From: rth @ 2002-04-23 0:46 UTC (permalink / raw)
To: david.keegan, gcc-bugs, gcc-prs, rth
Synopsis: Link option -shared-libgcc option REQUIRED on Solaris?
State-Changed-From-To: feedback->closed
State-Changed-By: rth
State-Changed-When: Tue Apr 23 00:45:55 2002
State-Changed-Why:
No feedback.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4511
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/4511: Link option -shared-libgcc option REQUIRED on Solaris?
@ 2001-10-09 5:16 david.keegan
0 siblings, 0 replies; 3+ messages in thread
From: david.keegan @ 2001-10-09 5:16 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-04-23 7:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-26 22:26 c++/4511: Link option -shared-libgcc option REQUIRED on Solaris? rth
-- strict thread matches above, loose matches on Subject: below --
2002-04-23 0:46 rth
2001-10-09 5:16 david.keegan
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).