Visual C++ 6.0 编译环境设置
CMD下调用 C:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.bat
然后就可以用cl.exe来编译。
GUI下:
Tools ->Options->Directories -> Executable files
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\COMMON\MSDEV98\BIN
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\BIN
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\COMMON\TOOLS
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\COMMON\TOOLS\WINNT
Tools ->Options->Directories -> Included files
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\ATL\INCLUDE
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MFC\INCLUDE
Tools ->Options->Directories -> Library files
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\LIB
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MFC\LIB
如果没有设置好,就会有error spawn cl.exe 或有dll找不到的错误。
阅读(2872) | 评论(0) | 转发(0) |