This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: How to choose STL library?
- To: gcc at gcc dot gnu dot org
- Subject: RE: How to choose STL library?
- From: biswapesh dot chattopadhyay at bt dot com
- Date: Tue, 17 Apr 2001 09:30:13 +0100
> 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
Probably because:
a) The implementation is entirely in the headers
b) The lib is statically linked.
Browsing the STL source, I'm inclined to think it's (a) - or am I missing
something ?
- Biswa.