How to choose STL library?
biswapesh.chattopadhyay@bt.com
biswapesh.chattopadhyay@bt.com
Tue Apr 17 01:31:00 GMT 2001
> 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.
More information about the Gcc
mailing list