This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: STL without libstdc++
- From: Michael T <raselmsh at hotmail dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 17 Jun 2008 10:27:29 +0200
- Subject: RE: STL without libstdc++
- References: <BAY132-W41025EA16C26B9A304654D0A90@phx.gbl> <cc49cd7b0806160716n4e90efces3ffce99daaedcbb2@mail.gmail.com>
Thanks to all who answered. Looking again at my own object code, whether using the STL introduces dependencies to libstdc++ seems to depend strongly on which features you use - some only depend on symbols which are also found in libsupc++.a, others have real dependencies - e.g. map depends on RB tree code in libstdc++, and something in my code (haven't checked what yet) depends on bad_alloc. I also have a feeling though (which may or not be correct) that some templates are assumed to be instantiated in libstdc++, and that g++ will not always instantiate them when it finds them in .cc files.
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE