This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: How to choose STL library?
- To: "'Phil Edwards'" <pedwards at disaster dot jaj dot com>, "Liu, Guangsheng" <Guangsheng dot Liu at Dialogic dot com>
- Subject: RE: How to choose STL library?
- From: "Liu, Guangsheng" <Guangsheng dot Liu at Dialogic dot com>
- Date: Mon, 16 Apr 2001 15:21:01 -0400
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
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.
if libc.so has nothing to do with STL. Why I can build a application like
this in Linux without "stdc++".
g++ -o test test.c
test.c is using <map> <vector> and it works.
ldd test
libpthread.so.0 => /lib/libpthread.so
libm.so.6 => /lib/libm.so.6
libc.so.6 => /lib/libc.so.6
/lib/ld-linux.so.2 => /lib/ld-linux.so.2