文件名称:Compiler
介绍说明--下载内容均来自于网络,请自行研究使用
命令行编译c++程序:
使用 cl.exe 的 vc6 版本, 复制到 .\VC6 目录下
示例:
http://zhidao.baidu.com/question/281545175
@echo off
cd c:\cl6
call setvars.bat
cd bin\qq\qq
cl stdafx.cpp /nologo /MD /W3 /GX /O2 /D WIN32 /D NDEBUG /D _WINDOWS /D _AFXDLL /D _MBCS /Fp Release/Test.pch /Yc stdafx.h /Fo Release/ /Fd Release/ /FD /c
cl qq.cpp /nologo /MD /W3 /GX /O2 /D WIN32 /D NDEBUG /D _WINDOWS /D _AFXDLL /D _MBCS /Fp Release/Test.pch /Yu stdafx.h /Fo Release/ /Fd Release/ /FD /c
cl qqDlg.cpp /nologo /MD /W3 /GX /O2 /D WIN32 /D NDEBUG /D _WINDOWS /D _AFXDLL /D _MBCS /Fp Release/Test.pch /Yu stdafx.h /Fo Release/ /Fd Release/ /FD /c
rc /l 0x804 qq.rc
link /nologo /subsystem:windows /incremental:no /pdb:Release/Test.pdb /machine:I386 /out:Release/Test.exe Release/stdafx.obj Release/qq.obj Release/qqDlg.obj qq.res
列表:
http://blog.csdn.net/zxremail/article/details/4952217
-Compiling c++ program by command line.
使用 cl.exe 的 vc6 版本, 复制到 .\VC6 目录下
示例:
http://zhidao.baidu.com/question/281545175
@echo off
cd c:\cl6
call setvars.bat
cd bin\qq\qq
cl stdafx.cpp /nologo /MD /W3 /GX /O2 /D WIN32 /D NDEBUG /D _WINDOWS /D _AFXDLL /D _MBCS /Fp Release/Test.pch /Yc stdafx.h /Fo Release/ /Fd Release/ /FD /c
cl qq.cpp /nologo /MD /W3 /GX /O2 /D WIN32 /D NDEBUG /D _WINDOWS /D _AFXDLL /D _MBCS /Fp Release/Test.pch /Yu stdafx.h /Fo Release/ /Fd Release/ /FD /c
cl qqDlg.cpp /nologo /MD /W3 /GX /O2 /D WIN32 /D NDEBUG /D _WINDOWS /D _AFXDLL /D _MBCS /Fp Release/Test.pch /Yu stdafx.h /Fo Release/ /Fd Release/ /FD /c
rc /l 0x804 qq.rc
link /nologo /subsystem:windows /incremental:no /pdb:Release/Test.pdb /machine:I386 /out:Release/Test.exe Release/stdafx.obj Release/qq.obj Release/qqDlg.obj qq.res
列表:
http://blog.csdn.net/zxremail/article/details/4952217
-Compiling c++ program by command line.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Debug\Compiler.exe
.....\Compiler.ilk
.....\Compiler.obj
.....\Compiler.pch
.....\Compiler.pdb
.....\Compiler.res
.....\qdbg.obj
.....\vc60.idb
.....\vc60.pdb
vc6\C1XX.DLL
...\C2.DLL
...\CL.EXE
...\cl_cmd.bat
...\LINK.EXE
...\link_cmd.bat
...\MSPDB60.DLL
...\m_Test.bat
...\m_Test.cpp
...\m_Test.exe
...\m_Test.obj
...\Test.bat
...\Test.cpp
...\Test.obj
Compiler.aps
Compiler.cpp
Compiler.dsp
Compiler.dsw
Compiler.ncb
Compiler.opt
Compiler.plg
Compiler.rc
icon1.ico
qdbg.cpp
qdbg.h
resource.h
编译器说明.txt
几个VS编译器(cl.exe)命令行编译的例子.txt
Debug
vc6