How to choose STL library?
Liu, Guangsheng
Guangsheng.Liu@Dialogic.com
Mon Apr 16 12:21: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.
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
More information about the Gcc
mailing list