public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/17537] New: g++ not passing -lstdc++ to linker when no .o files are specified
@ 2004-09-17 18:23 dpatel at apple dot com
2004-09-17 18:38 ` [Bug driver/17537] [3.4/4.0 Regression] g++ not passing -lstdc++ to linker when -l is only supplied pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: dpatel at apple dot com @ 2004-09-17 18:23 UTC (permalink / raw)
To: gcc-bugs
Steps to reproduce.
$ cat > main.cpp
int main() {
char *foo = new char[10];
delete foo;
}
$ g++ -c main.cpp
$ g++ -o main1 main.o
$ ar cr libmain.a main.o
$ ranlib libmain.a
$ g++ -o main2 libmain.a
$ g++ -o main3 -L. -lmain
ld: warning prebinding disabled because of undefined symbols
ld: Undefined symbols:
operator delete(void*)
operator new[](unsigned long)
___gxx_personality_v0
--
Summary: g++ not passing -lstdc++ to linker when no .o files are
specified
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dpatel at apple dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: powerpc-darwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17537
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/17537] [3.4/4.0 Regression] g++ not passing -lstdc++ to linker when -l is only supplied
2004-09-17 18:23 [Bug driver/17537] New: g++ not passing -lstdc++ to linker when no .o files are specified dpatel at apple dot com
@ 2004-09-17 18:38 ` pinskia at gcc dot gnu dot org
2004-09-25 15:20 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-17 18:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-17 18:38 -------
Confirmed, correcting the summary as it is only true for -l.
Also this is a regression from 3.3.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |3.4.0 4.0.0
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2004-09-17 18:38:12
date| |
Summary|g++ not passing -lstdc++ to |[3.4/4.0 Regression] g++ not
|linker when no .o files are |passing -lstdc++ to linker
|specified |when -l is only supplied
Target Milestone|--- |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17537
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/17537] [3.4/4.0 Regression] g++ not passing -lstdc++ to linker when -l is only supplied
2004-09-17 18:23 [Bug driver/17537] New: g++ not passing -lstdc++ to linker when no .o files are specified dpatel at apple dot com
2004-09-17 18:38 ` [Bug driver/17537] [3.4/4.0 Regression] g++ not passing -lstdc++ to linker when -l is only supplied pinskia at gcc dot gnu dot org
@ 2004-09-25 15:20 ` pinskia at gcc dot gnu dot org
2004-09-27 15:44 ` pcarlini at suse dot de
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-25 15:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-25 15:20 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02651.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17537
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/17537] [3.4/4.0 Regression] g++ not passing -lstdc++ to linker when -l is only supplied
2004-09-17 18:23 [Bug driver/17537] New: g++ not passing -lstdc++ to linker when no .o files are specified dpatel at apple dot com
2004-09-17 18:38 ` [Bug driver/17537] [3.4/4.0 Regression] g++ not passing -lstdc++ to linker when -l is only supplied pinskia at gcc dot gnu dot org
2004-09-25 15:20 ` pinskia at gcc dot gnu dot org
@ 2004-09-27 15:44 ` pcarlini at suse dot de
2004-09-28 22:43 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2004-09-27 15:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2004-09-27 15:44 -------
*** Bug 17694 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |psfales at lucent dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17537
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/17537] [3.4/4.0 Regression] g++ not passing -lstdc++ to linker when -l is only supplied
2004-09-17 18:23 [Bug driver/17537] New: g++ not passing -lstdc++ to linker when no .o files are specified dpatel at apple dot com
` (2 preceding siblings ...)
2004-09-27 15:44 ` pcarlini at suse dot de
@ 2004-09-28 22:43 ` cvs-commit at gcc dot gnu dot org
2004-09-28 22:53 ` [Bug driver/17537] [3.4 " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-28 22:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-28 22:43 -------
Subject: Bug 17537
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: sayle@gcc.gnu.org 2004-09-28 22:43:12
Modified files:
gcc/cp : ChangeLog g++spec.c
Log message:
PR driver/17537
* g++spec.c (lang_specific_driver): Unrecognized libraries, other
than -lc and -lm, may require linking against libstc++.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4393&r2=1.4394
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/g++spec.c.diff?cvsroot=gcc&r1=1.46&r2=1.47
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17537
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/17537] [3.4 Regression] g++ not passing -lstdc++ to linker when -l is only supplied
2004-09-17 18:23 [Bug driver/17537] New: g++ not passing -lstdc++ to linker when no .o files are specified dpatel at apple dot com
` (3 preceding siblings ...)
2004-09-28 22:43 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-28 22:53 ` pinskia at gcc dot gnu dot org
2004-09-29 2:19 ` cvs-commit at gcc dot gnu dot org
2004-09-29 2:34 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-28 22:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-28 22:53 -------
Now only a 3.4 regression.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.4.0 4.0.0 |3.4.0
Known to work|3.3.3 |3.3.3 4.0.0
Summary|[3.4/4.0 Regression] g++ not|[3.4 Regression] g++ not
|passing -lstdc++ to linker |passing -lstdc++ to linker
|when -l is only supplied |when -l is only supplied
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17537
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/17537] [3.4 Regression] g++ not passing -lstdc++ to linker when -l is only supplied
2004-09-17 18:23 [Bug driver/17537] New: g++ not passing -lstdc++ to linker when no .o files are specified dpatel at apple dot com
` (4 preceding siblings ...)
2004-09-28 22:53 ` [Bug driver/17537] [3.4 " pinskia at gcc dot gnu dot org
@ 2004-09-29 2:19 ` cvs-commit at gcc dot gnu dot org
2004-09-29 2:34 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-29 2:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-29 02:19 -------
Subject: Bug 17537
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: sayle@gcc.gnu.org 2004-09-29 02:18:58
Modified files:
gcc/cp : ChangeLog g++spec.c
Log message:
PR driver/17537
* g++spec.c (lang_specific_driver): Unrecognized libraries, other
than -lc and -lm, may require linking against libstc++.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.161&r2=1.3892.2.162
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/g++spec.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.41&r2=1.41.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17537
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/17537] [3.4 Regression] g++ not passing -lstdc++ to linker when -l is only supplied
2004-09-17 18:23 [Bug driver/17537] New: g++ not passing -lstdc++ to linker when no .o files are specified dpatel at apple dot com
` (5 preceding siblings ...)
2004-09-29 2:19 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-29 2:34 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-29 2:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-29 02:34 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17537
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-09-29 2:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-17 18:23 [Bug driver/17537] New: g++ not passing -lstdc++ to linker when no .o files are specified dpatel at apple dot com
2004-09-17 18:38 ` [Bug driver/17537] [3.4/4.0 Regression] g++ not passing -lstdc++ to linker when -l is only supplied pinskia at gcc dot gnu dot org
2004-09-25 15:20 ` pinskia at gcc dot gnu dot org
2004-09-27 15:44 ` pcarlini at suse dot de
2004-09-28 22:43 ` cvs-commit at gcc dot gnu dot org
2004-09-28 22:53 ` [Bug driver/17537] [3.4 " pinskia at gcc dot gnu dot org
2004-09-29 2:19 ` cvs-commit at gcc dot gnu dot org
2004-09-29 2:34 ` pinskia at gcc dot gnu dot org
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).