Make the Standard C++ Library the Default

If you want to use the Standard C++ library, include one or more of the Standard C++ library header files in your code, for example:

#include <algorithm> 

The contains a list of the header files. The new header files do not have the .h extension.

Do not use the old iostream header files (fstream.h, iomanip.h, ios.h, iostream.h, istream.h, ostream.h, streamb.h, and strstrea.h). You cannot mix calls to the old iostream library and the new Standard C++ library.

The Standard C++ library filenames are LIBCP.LIB, LIBCPMT.LIB, and MSVCPRT.LIB. The debug versions are contained in LIBCPD.LIB, LIBCPMTD.LIB, and MSVCPRTD.LIB.

If you include the new Standard C++ header files, the run-time library files that contain the Standard C++ library will be the default libraries. For example, if you choose Multithreaded in the Use run-time library drop-down list in the Code Generation category of the C/C++ tab in the Project Settings dialog box, and you have included a Standard C++ header file in your code, LIBCPMT.LIB becomes the default library.

For a description of all the C run-time libraries, see the C Run-Time Libraries and C Run-Time Debug Libraries.