How to choose STL library?

Phil Edwards pedwards@disaster.jaj.com
Mon Apr 16 12:13:00 GMT 2001


On Mon, Apr 16, 2001 at 03:08:45PM -0400, Liu, Guangsheng wrote:
>   There are variety of STL implementation.  Currently, I am using RedHat
> 6.2, gcc 2.95.2, libc.so.6.  I can include something like <map> <vector> and
> build it with no special option with g++. It works,  what this really means
> to me.  Does this mean the STL implementation is inside libc.so.6, or gcc
> compiler somewhere. 
>   By the way, I know stdc++ is implementing STL (part of C++ standard). Does
> this mean that I can replace stdc++ with libc.so.6 (assuming libc.so.6
> implementing STL) in order to use STL inside stdc++? and how?

libc.so has nothing to do with the STL.  The implementation is mostly
in the header files themselves since we have no 'export' keyword yet,
and in libstdc++.so.

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.



More information about the Gcc mailing list