tags:

views:

180

answers:

5

is it possible to get the source code for standard c++ library?

+3  A: 

The GNU project is Free and Open Source software, and contains an implementation of the C++ standard library.

http://gcc.gnu.org/libstdc++/

chpwn
i followed the link to http://mirror.clarkson.edu/gnu/... still no idea which one is standard c++ lib
Southsouth
Really? Any of the tarballs in here should extract to the standard c++ lib source: http://mirror.clarkson.edu/gnu/libstdc++/
Michael Greene
+3  A: 

If you have Visual Studio Professional, it has source code in

X:\Microsoft Visual Studio 9.0\VC\crt\src

wallyk
+1  A: 

You should already have the sources in your compiler installation. If you are using an IDE with a "jump to include file" command, select any STL header and jump to it. If you are using some kind of UNIX, look in /usr/include/c++. See where that STL header includes other headers and recurse :v) .

Potatoswatter
`/usr/lib/gcc/$CTARGET/$VERSION/include/g++-v4/` on my standard Linux system.
ephemient
Huh, the GCC manpage seems to indicate that is a more likely location, but it has only a few random low-level things (no STL) in standard OS X. Maybe `locate iostream` is a good solution.
Potatoswatter
+1  A: 

Don't forget STLPort & the SGI ones.

Eugen Constantin Dinca
A: 

Apache has one available.

Max Lybbert