This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to choose STL library?


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]