This documentation is archived and is not being maintained.

Building the Run-Time Libraries

To build your own copies of the C run-time library files

  1. If you have not already done so, perform a custom install of Visual C++ and install the CRT source directory.
  2. Set the VCTOOLS environment variable to be set to the Vc7 directory. For example, on the command line type:
    set VCTOOLS=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
  3. Change directories to vc7\crt\src and depending on your operating, run:
    • BLDWIN9x.BAT, if you are Windows 98 or Windows Me.
    • BLDNT.CMD, if you are on Windows NT, Windows 2000, or Windows XP.

The CRT rebuild produces customized versions of CRT DLLs and corresponding import .lib files. To avoid conflicts with the existing, registered DLLs, the build process creates files with different names, using prefix sample instead of msvc. The following table shows the correspondence between the files produced by the CRT rebuild process and the CRT files installed by Visual C++:

New file CRT file equivalent
_sample_.dll    msvcr71.dll
sample_p.dll    msvcp71.dll
_sampld_.dll msvcr71d.dll
sampld_p.dll msvcp71d.dll
_sample_.dll msvcr71.dll
sample_p.dll msvcp71.dll
_sampld_.dll msvcr71d.dll
sampld_p.dll msvcp71d.dll
_sample_.lib msvcr71.lib
sample_p.lib msvcp71.lib
_sampld_.lib msvcr71d.lib
sampld_p.lib msvcp71d.lib

See Also

C Run-Time Libraries