Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to get the source code for the C++ standard library? [closed]

Tags:

c++

visual-c++

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

like image 897
Southsouth Avatar asked Jan 05 '10 04:01

Southsouth


People also ask

Where is C++ Standard Library source code?

If you are using some kind of UNIX, look in /usr/include/c++ .

Where is C standard library stored?

The C standard library itself is stored in '/usr/lib/libc. a' and contains functions specified in the ANSI/ISO C standard, such as 'printf' ---this library is linked by default for every C program.

Is the C++ Standard Library open source?

The Apache C++ Standard Library is another open source implementation.

Is there a standard library for C?

The C standard library or libc is the standard library for the C programming language, as specified in the ISO C standard. Starting from the original ANSI C standard, it was developed at the same time as the C library POSIX specification, which is a superset of it.


2 Answers

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

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

like image 110
Grant Paul Avatar answered Oct 02 '22 18:10

Grant Paul


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

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

like image 21
wallyk Avatar answered Oct 02 '22 18:10

wallyk