STL for gcc compiler

Rupert Wood me@rupey.net
Wed Jan 30 23:44:00 GMT 2002


Maureen Altenau wrote:

> I have downloaded the gcc compiler and need the Standard Template
> Library (STL).  Is there a corresponding STL and if so, what site
> can it be downloaded from?

You should already have it; an implementation of STL is included with
the C++ runtime library. (The exception is if you only downloaded the
gcc-core package in which case you don't have a C++ compiler either.) If
you'd like to see for yourself, the header files are in the
include/g++-v3 subdirectory beneath the prefix you installed GCC to, but
this directory is searched automatically by the C++ compiler so you
don't need to specify it.

One final caveat if you're new to GCC - you should compile and link C++
code using 'g++' and not 'gcc'.

Rup.



More information about the Gcc-help mailing list