public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/15074] New: g++ -lsupc++ still links against libstdc++
@ 2004-04-22 16:24 phython at gcc dot gnu dot org
  2004-04-22 16:55 ` [Bug libstdc++/15074] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: phython at gcc dot gnu dot org @ 2004-04-22 16:24 UTC (permalink / raw)
  To: gcc-bugs

The FAQ says that using g++ and -lsupc++ together will link against libsupc++
instead of libstdc++.  This doesn't work on GNU/Linux:
                                                                                
jim@squirrel:~/test $ g++ -o sizeof sizeof.cc -lsupc++
jim@squirrel:~/test $ ldd sizeof
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x7002c000)
        libm.so.6 => /lib/libm.so.6 (0x700f0000)
        libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0x70184000)
        libc.so.6 => /lib/libc.so.6 (0x701a0000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x70000000)
jim@squirrel:~/test $ gcc -o sizeof sizeof.cc -lsupc++
jim@squirrel:~/test $ ldd sizeof
        libc.so.6 => /lib/libc.so.6 (0x7002c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x70000000)

-- 
           Summary: g++ -lsupc++ still links against libstdc++
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: phython at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-linux-gnu
  GCC host triplet: sparc-linux-gnu
GCC target triplet: sparc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15074


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/15074] g++ -lsupc++ still links against libstdc++
  2004-04-22 16:24 [Bug libstdc++/15074] New: g++ -lsupc++ still links against libstdc++ phython at gcc dot gnu dot org
@ 2004-04-22 16:55 ` pinskia at gcc dot gnu dot org
  2004-04-22 17:00 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-22 16:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-22 16:17 -------
What FAQ, I do not see any mention of this in <http://gcc.gnu.org/faq.html> or <http://gcc.gnu.org/
onlinedocs/libstdc++/faq/index.html>?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15074


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/15074] g++ -lsupc++ still links against libstdc++
  2004-04-22 16:24 [Bug libstdc++/15074] New: g++ -lsupc++ still links against libstdc++ phython at gcc dot gnu dot org
  2004-04-22 16:55 ` [Bug libstdc++/15074] " pinskia at gcc dot gnu dot org
@ 2004-04-22 17:00 ` pinskia at gcc dot gnu dot org
  2004-05-13 14:05 ` bkoz at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-22 17:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-22 16:19 -------
If the only functions from libstdc++.a which you need are language  support functions (those listed in  
clause 18 of the standard,  e.g., new and delete), then try linking  against libsupc++.a (usually 
specifying  -lsupc++ when calling g++ for the final link step will  do it). This library contains only 
those support routines, one per  object file. But if you are using anything from the rest of the  library, 
such as IOStreams or vectors, then you'll still need  pieces from libstdc++.a.

It does say to use g++ though :(  This should change.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1
           Keywords|                            |documentation
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-22 16:19:59
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15074


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/15074] g++ -lsupc++ still links against libstdc++
  2004-04-22 16:24 [Bug libstdc++/15074] New: g++ -lsupc++ still links against libstdc++ phython at gcc dot gnu dot org
  2004-04-22 16:55 ` [Bug libstdc++/15074] " pinskia at gcc dot gnu dot org
  2004-04-22 17:00 ` pinskia at gcc dot gnu dot org
@ 2004-05-13 14:05 ` bkoz at gcc dot gnu dot org
  2004-05-13 14:23 ` phython at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-05-13 14:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bkoz at gcc dot gnu dot org  2004-05-13 04:39 -------

Indeed, what FAQ? 

You need to be using gcc, not g++ to do this kind of thing. ie:

gcc -o sizeof sizeof.cc -lsupc++

-benjamin

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15074


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/15074] g++ -lsupc++ still links against libstdc++
  2004-04-22 16:24 [Bug libstdc++/15074] New: g++ -lsupc++ still links against libstdc++ phython at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-05-13 14:05 ` bkoz at gcc dot gnu dot org
@ 2004-05-13 14:23 ` phython at gcc dot gnu dot org
  2004-05-14 10:53 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: phython at gcc dot gnu dot org @ 2004-05-13 14:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From phython at gcc dot gnu dot org  2004-05-13 05:32 -------
 Sorry, the libstdc++ FAQ:
http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#2_5

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15074


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/15074] g++ -lsupc++ still links against libstdc++
  2004-04-22 16:24 [Bug libstdc++/15074] New: g++ -lsupc++ still links against libstdc++ phython at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-05-13 14:23 ` phython at gcc dot gnu dot org
@ 2004-05-14 10:53 ` cvs-commit at gcc dot gnu dot org
  2004-05-14 10:54 ` bkoz at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-14 10:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-13 15:14 -------
Subject: Bug 15074

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bkoz@gcc.gnu.org	2004-05-13 15:14:08

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/docs/html/faq: index.html 

Log message:
	2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
	
	PR libstdc++/15074
	* docs/html/faq/index.html: Update docs for libsupc++ usage.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2470&r2=1.2471
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/docs/html/faq/index.html.diff?cvsroot=gcc&r1=1.64&r2=1.65



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15074


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/15074] g++ -lsupc++ still links against libstdc++
  2004-04-22 16:24 [Bug libstdc++/15074] New: g++ -lsupc++ still links against libstdc++ phython at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-05-14 10:53 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-14 10:54 ` bkoz at gcc dot gnu dot org
  2004-05-14 10:55 ` cvs-commit at gcc dot gnu dot org
  2004-05-14 18:08 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-05-14 10:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bkoz at gcc dot gnu dot org  2004-05-13 15:16 -------

This is a documentation error, now fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bkoz at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15074


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/15074] g++ -lsupc++ still links against libstdc++
  2004-04-22 16:24 [Bug libstdc++/15074] New: g++ -lsupc++ still links against libstdc++ phython at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-05-14 10:54 ` bkoz at gcc dot gnu dot org
@ 2004-05-14 10:55 ` cvs-commit at gcc dot gnu dot org
  2004-05-14 18:08 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-14 10:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-13 15:27 -------
Subject: Bug 15074

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	bkoz@gcc.gnu.org	2004-05-13 15:27:42

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/docs/html/faq: index.html 

Log message:
	2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
	
	PR libstdc++/15074
	* docs/html/faq/index.html: Update docs for libsupc++ usage.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.2224.2.98&r2=1.2224.2.99
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/docs/html/faq/index.html.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.63.4.1&r2=1.63.4.2



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15074


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libstdc++/15074] g++ -lsupc++ still links against libstdc++
  2004-04-22 16:24 [Bug libstdc++/15074] New: g++ -lsupc++ still links against libstdc++ phython at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-05-14 10:55 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-14 18:08 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-14 18:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-14 12:26 -------
Fixed for 3.4.1.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15074


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-05-14 12:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-22 16:24 [Bug libstdc++/15074] New: g++ -lsupc++ still links against libstdc++ phython at gcc dot gnu dot org
2004-04-22 16:55 ` [Bug libstdc++/15074] " pinskia at gcc dot gnu dot org
2004-04-22 17:00 ` pinskia at gcc dot gnu dot org
2004-05-13 14:05 ` bkoz at gcc dot gnu dot org
2004-05-13 14:23 ` phython at gcc dot gnu dot org
2004-05-14 10:53 ` cvs-commit at gcc dot gnu dot org
2004-05-14 10:54 ` bkoz at gcc dot gnu dot org
2004-05-14 10:55 ` cvs-commit at gcc dot gnu dot org
2004-05-14 18:08 ` 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).