@echo off
rem
rem Root of Visual Developer Studio Common files.
set VSCommonDir=E:/Program Files/Microsoft Visual Studio/Common
rem
rem Root of Visual Developer Studio installed files.
rem
set MSDevDir=E:/PROGRAM FILES/MICROSOFT VISUAL STUDIO/Common/msdev98
rem
rem Root of Visual C++ installed files.
rem
set MSVCDir=E:/PROGRAM FILES/MICROSOFT VISUAL STUDIO/VC98
rem
rem VcOsDir is used to help create either a Windows 95 or Windows NT specific path.
rem
set VcOsDir=WIN95
if "%OS%" == "Windows_NT" set VcOsDir=WINNT
rem
echo Setting environment for using Microsoft Visual C++ tools.
rem
if "%OS%" == "Windows_NT" set PATH=%MSDevDir%/BIN;%MSVCDir%/BIN;%VSCommonDir%/TOOLS/%VcOsDir%;%VSCommonDir%/TOOLS;%PATH%
if "%OS%" == "" set PATH="%MSDevDir%/BIN";"%MSVCDir%/BIN";"%VSCommonDir%/TOOLS/%VcOsDir%";"%VSCommonDir%/TOOLS";"%windir%/SYSTEM";"%PATH%"
set INCLUDE=%MSVCDir%/ATL/INCLUDE;%MSVCDir%/INCLUDE;%MSVCDir%/MFC/INCLUDE;%INCLUDE%
set LIB=%MSVCDir%/LIB;%MSVCDir%/MFC/LIB;%LIB%
set VcOsDir=
set VSCommonDir=
|
序号
|
步骤
|
说明
|
1
|
安装VC6 CRT 源代码
|
|
2
|
复制Makefile/Makefile.inc/Makefile.sub等文件
|
|
3
|
修改Makefile文件
|
注意不要注释$(V6TOOLS)/include/winver.h /
|
4
|
修改Vcvars32.bat
|
|
C run-time library (without iostream or standard C++ library)
|
Characteristics
|
Option
|
Preprocessor directives
|
LIBC.LIB
|
Single-threaded, static link
|
/ML
|
|
LIBCMT.LIB
|
Multithreaded, static link
|
/MT
|
_MT
|
MSVCRT.LIB
|
Multithreaded, dynamic link (import library for MSVCR71.DLL). Be aware that if you use the Standard C++ Library, your program will need MSVCP71.DLL to run.
|
/MD
|
_MT, _DLL
|
LIBCD.LIB
|
Single-threaded, static link (debug)
|
/MLd
|
_DEBUG
|
LIBCMTD.LIB
|
Multithreaded, static link (debug)
|
/MTd
|
_DEBUG, _MT
|
MSVCRTD.LIB
|
Multithreaded, dynamic link (import library for MSVCR71D.DLL) (debug)
|
/MDd
|
_DEBUG, _MT, _DLL
|
序号
|
生成的文件
|
等价于原有的文件
|
1
|
libc.lib
|
LIBC.LIB
|
2
|
libcmt.lib
|
LIBCMT.LIB
|
3
|
libcd.lib
|
LIBCD.LIB
|
4
|
libcmtd.lib
|
LIBCMTD.LIB
|
5
|
_sample_.lib
|
MSVCRT.LIB
|
6
|
_sampld_.lib
|
MSVCRTD.LIB
|
7
|
_sample_.dll
|
MSVCRT.DLL
|
8
|
_sampld_.dll
|
MSVCRTD.DLL
|