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?





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



  


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