dcc32如何去用?
解决方案 »
- 我的程序在别人机子上不能运行,提示缺少borlandmm.dll
- WordApplication1.Selection.Document.Saveas的用法
- 一个简单的问题﹐全分给第一位回答者…………
- 关于IHtmlFramesCollection2接口的问题,请各位大哥帮忙!!
- 最优算法问题,请高手赐教!
- 求"纺织企业生产管理系统"----分不够再给
- 如何获取某个网页页面的内容(在线等待中)
- 关于qq的设想!欢迎讨论
- 请问:在程序中线程多了,会影响程序的效率和实时性吗?
- 特奇怪的现象!!“开始”--》查找--》“文件或文件夹”?!·#¥%……—*
- 关于ADO的问题(等着回答,分不够再给^_^)
- 关于VCL FrameWork 的消息处理问题
dcc32 xxxx.dpr回车这是最简单的用法,当然我想这你会的。
Copyright (c) 1983,2002 Borland Software CorporationSyntax: dcc32 [options] filename [options] -A<unit>=<alias> = Set unit alias -LU<package> = Use package
-B = Build all units -M = Make modified units
-CC = Console target -N<path> = DCU output directory
-CG = GUI target -O<paths> = Object directories
-D<syms> = Define conditionals -P = look for 8.3 file names also
-E<path> = EXE output directory -Q = Quiet compile
-F<offset> = Find error -R<paths> = Resource directories
-GD = Detailed map file -U<paths> = Unit directories
-GP = Map file with publics -V = Debug information in EXE
-GS = Map file with segments -VR = Generate remote debug (RSM)
-H = Output hint messages -W = Output warning messages
-I<paths> = Include directories -Z = Output 'never build' DCPs
-J = Generate .obj file -$<dir> = Compiler directive
-JP = Generate C++ .obj file --help = Show this help screen
-K<addr> = Set image base addr --version = Show name and version
Compiler switches: -$<letter><state> (defaults are shown below)
A8 Aligned record fields P+ Open string params
B- Full boolean Evaluation Q- Integer overflow checking
C+ Evaluate assertions at runtime R- Range checking
D+ Debug information T- Typed @ operator
G+ Use imported data references U- Pentium(tm)-safe divide
H+ Use long strings by default V+ Strict var-strings
I+ I/O checking W- Generate stack frames
J- Writeable structured consts X+ Extended syntax
L+ Local debug symbols Y+ Symbol reference info
M- Runtime type info Z1 Minimum size of enum types
O+ Optimization
dcc32 >a.txt 输入到a.txt这个文本文件。
比如我
dcc32 project1.dpr -e c:\
就出错啊!
dcc32 project1.dpr -Ec:\
实在有点不在好意思问你问题了,不过还有一个问题想问你:
我用了第三方的组件,想在dcc下编译,可说找不到dcu文件,我怎么定义liblary?
如果你看到了,就帮我一下,谢了。
在你的帮助下,我有看了些delphi自带的help,终于有点眉目了,现总结如下:
1。dcc32是delphi的command complier,是在命令行方式下运行的,在command模式下的任何路径都可以直接输入dcc32查看帮助。
2。我主要用了两个参数:
-e:定义exe文件的输出路径。example:dcc32 project.dpr -ec:\ 注意-e和c;\之间无空格。
-u:如果使用了第三方控件,需要查找资源路径,
就是界面模式下的tools-->Environment Options-->library-->library path中定义的路径一样。
有了这两个参数,我想就可以编译生成可执行文件了。
3。这里说一个小技巧,其实也是borland设计的一个功能。
如果参数列表很多,如果每次在command模式下都输入相同的参数列表,那就是资源浪费,borland定义了dcc32.cfg文件,我们可以把参数列表输入这个文件。那么下次运行时,就不需要输入参数了。直接dcc32 *.dpr就可以了。
4。以上,是我做的一点总结,望高手指点。
BORLAND的好几个开发工具比如BCB,DELPHI都沿用这种方式..当然,如果你的项目比较复杂,又想命令行编译,那就试着编写MAKE文件吧..
好了,结贴了!