请教:dcc32如何去用?

g961681 2004-10-09 09:47:26
dcc32如何去用?
...全文
326 12 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
g961681 2004-10-11
  • 打赏
  • 举报
回复
编写MAKE文件是一个好方法,也在部分组件代码中见过。
好了,结贴了!
halfdream 2004-10-10
  • 打赏
  • 举报
回复
得到上面这东西,也只需要
dcc32 >a.txt 输入到a.txt这个文本文件。
halfdream 2004-10-10
  • 打赏
  • 举报
回复
Borland Delphi Version 14.0
Copyright (c) 1983,2002 Borland Software Corporation

Syntax: 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
halfdream 2004-10-10
  • 打赏
  • 举报
回复
dcc32 xxx.pas回车。

或者
dcc32 xxxx.dpr回车

这是最简单的用法,当然我想这你会的。
halfdream 2004-10-10
  • 打赏
  • 举报
回复
是的..从TURBO C开始,在BIN目录下面就可以看到一个TCC.CFG文件,
BORLAND的好几个开发工具比如BCB,DELPHI都沿用这种方式..

当然,如果你的项目比较复杂,又想命令行编译,那就试着编写MAKE文件吧..
zhangzhibao 2004-10-10
  • 打赏
  • 举报
回复
看了这些回复

收获很大

谢谢大家
g961681 2004-10-10
  • 打赏
  • 举报
回复
看英文帮助真头痛啊!
悔啊,悔当初没把英语学好啊!
g961681 2004-10-10
  • 打赏
  • 举报
回复
没有人用过吗?
我想知道她的常用参数列表!
g961681 2004-10-10
  • 打赏
  • 举报
回复
非常感谢:halfdream(哈欠)
在你的帮助下,我有看了些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。以上,是我做的一点总结,望高手指点。
g961681 2004-10-10
  • 打赏
  • 举报
回复
非常感谢:halfdream(哈欠)
实在有点不在好意思问你问题了,不过还有一个问题想问你:
我用了第三方的组件,想在dcc下编译,可说找不到dcu文件,我怎么定义liblary?
如果你看到了,就帮我一下,谢了。
halfdream 2004-10-10
  • 打赏
  • 举报
回复
不要加空格,
dcc32 project1.dpr -Ec:\

g961681 2004-10-10
  • 打赏
  • 举报
回复
这个我也知道啊,其中常用的有哪些啊!
比如我
dcc32 project1.dpr -e c:\
就出错啊!

5,927

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧