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.
chpwn
2010-01-05 04:48:54
i followed the link to http://mirror.clarkson.edu/gnu/... still no idea which one is standard c++ lib
Southsouth
2010-01-05 04:56:01
Really? Any of the tarballs in here should extract to the standard c++ lib source: http://mirror.clarkson.edu/gnu/libstdc++/
Michael Greene
2010-01-05 05:05:35
+3
A:
If you have Visual Studio Professional, it has source code in
X:\Microsoft Visual Studio 9.0\VC\crt\src
wallyk
2010-01-05 04:53:50
+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
2010-01-05 05:33:37
`/usr/lib/gcc/$CTARGET/$VERSION/include/g++-v4/` on my standard Linux system.
ephemient
2010-01-05 05:39:34
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
2010-01-05 06:45:27