The following procedure shows you how to build your own copies of the C run-time library files.
If you have not already done so, perform a custom install of Visual C++ and install the CRT source directory.
Set the VCTOOLS environment variable to be set to the Vc directory. For example, on the command line type:
set VCTOOLS=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc
Set environment variable LLP64=1 if you want to build for IA64 or LLP64=2 if you want to build for X64.
Change directories to vc\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++:
_sample_.dll
msvcr80.dll
sample_p.dll
msvcp80.dll
_sampld_.dll
msvcr80d.dll
sampld_p.dll
msvcp80d.dll
_sample_.lib
msvcr80.lib
sample_p.lib
msvcp80.lib
_sampld_.lib
msvcr80d.lib
sampld_p.lib
msvcp80d.lib
You cannot build the CRT using a 64-bit native toolset.