Using the C Run-Time Library

C Run-Time (CRT) libraries are not distributed with the Platform SDK. Many vendors distribute forms of CRT libaries under different names. These name differences can be encapsulated in WIN32.MAK.

The following sections describe specifically how to use the different forms of Microsoft's C Run-time Library when building your application.

Microsoft Visual C++ contains three forms of the CRT:

LIBC.LIB
Statically linked library for single-threaded applications.
LIBCMT.LIB
Statically linked library that supports multi-threaded applications.
MSVCRT.LIB
Import library for the CRT in a DLL that also supports multi-threaded applications.

Note  If you would like to avoid linking in the CRT, compile your source files with the -Qlfdiv- flag, do not call the CRT functions, do not call any math routines, and do not specify an entry point in the CRT with the -entry linker option.