From 4b351c6ee882549651730baaaab38bd803b34770 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Thu, 13 May 2004 15:14:07 +0000 Subject: [PATCH] re PR libstdc++/15074 (g++ -lsupc++ still links against libstdc++) 2004-05-13 Benjamin Kosnik PR libstdc++/15074 * docs/html/faq/index.html: Update docs for libsupc++ usage. From-SVN: r81786 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/docs/html/faq/index.html | 21 +++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 56da7b31234..4412daa8d90 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-05-13 Benjamin Kosnik + + PR libstdc++/15074 + * docs/html/faq/index.html: Update docs for libsupc++ usage. + 2004-05-13 Benjamin Kosnik PR libstdc++/15412 diff --git a/libstdc++-v3/docs/html/faq/index.html b/libstdc++-v3/docs/html/faq/index.html index 4bfc6d456ed..9a8bbafbb36 100644 --- a/libstdc++-v3/docs/html/faq/index.html +++ b/libstdc++-v3/docs/html/faq/index.html @@ -395,16 +395,17 @@ which is no longer available, thanks deja...-->

It's not a bug, and it's not really a problem. Nevertheless, some people don't like it, so here are two pseudo-solutions:

-

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. +

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 (Using + gcc instead of g++ and explicitly + linking in -lsupc++ 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.

The second method is one we hope to incorporate into the library build process. Some platforms can place each function and variable -- 2.30.2