From da0884f62925eac0b314507b3d2183e26e7c26b6 Mon Sep 17 00:00:00 2001 From: bkoz Date: Thu, 13 May 2004 15:14:07 +0000 Subject: 2004-05-13 Benjamin Kosnik PR libstdc++/15074 * docs/html/faq/index.html: Update docs for libsupc++ usage. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81786 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/docs/html/faq/index.html | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'libstdc++-v3/docs/html') 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 -- cgit v1.2.1