Delphi 6 命令行编译:无 DCU
当对 .dpr 文件使用 dcc32 时,它会生成一个 dll,但不会生成 dcu。
项目级别 .cfg 使用 –N 开关设置路径,但指定的目录中没有任何内容。当 –E 开关正在工作时,它必须看到 .cfg。
我尝试在调用 dcc32 之前对 .dpr 文件使用 brcc32/brc32,但其中任何一个都会给我错误 projectName.dpr 3 1: Expecting END?
我需要项目 1 中的项目 2 的 dcu,当我针对 .dpr 运行 dcc32 时,它会出错,指出无法找到项目 1 中项目 2 中丢失的 dcu。
需要运行哪些步骤 clc/utility 来生成 dcu 文件? 在安装了 Delphi 6 的 XP 上运行。 DCC32 v14 BRC32 v5.4
When using dcc32 against the .dpr file it produces a dll but no dcu’s.
The project level .cfg is using the –N switch to set the path but nothing is in the directory specified. It must see the .cfg as the –E switch is working.
I tried to use brcc32/brc32 against the .dpr file before a call dcc32 but either one gives me the Error projectName.dpr 3 1: Expecting END?
I need the dcu’s from project1 for project2 which when I run the dcc32 against the .dpr it errors stating it can’t find the missing dcu’s from project1 for project2.
What steps, clc/utility need to be run to produce the dcu files?
Running on XP with Delphi 6 installed.
DCC32 v14
BRC32 v5.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许它忽略了 -N 开关,因为它没有?据我所知,指定 dcu 的位置的开关是 -N0 开关。 (字母 N,数字零)。
Perhaps it is ignoring the -N switch because it doesn't have one? As far as I know the switch to specify where the dcu's should go is the -N0 switch. (Letter N, digit zero).
dcc32 --help 是你的朋友。特别是:(
请注意,D6 不显示此开关。D7 和更新的版本会显示此开关。)
您必须确保通过 -U 标志包含所有必要的单元依赖项,通过-R 标志,等等。例如:
编辑:
dcc32 --help
不告诉您有关 -N0 开关的信息并没有帮助。我通过艰难的方式发现了这一点,只有在我的老板(Guido Gybels)的建议下,我才设法让事情顺利进行。dcc32 --help is your friend here. In particular:
(Note that D6 does not show this switch. D7 and more recent versions do.)
You do have to make sure that you include all necessary unit dependencies through the -U flag, resource dependencies through the -R flag, and so on. For instance:
EDIT: It doesn't help that
dcc32 --help
does NOT tell you about the -N0 switch. I found this out the hard way, and it was only on the advice of my boss (Guido Gybels) that I managed to get things working.