Delphi XE2:使用dcc32.exe无法编译一个简单的程序 [英] Delphi XE2: Fail using dcc32.exe to compile a simple program

查看:470
本文介绍了Delphi XE2:使用dcc32.exe无法编译一个简单的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装Delphi XE2后,我尝试命令行编译dcc32.exe来编译一个简单的程序:

After install Delphi XE2, I try command line compiler dcc32.exe to compile a simple program:

program test;

uses SysUtils;

begin
end.

命令行编译器显示错误:

The command line compiler show me error:

c:> dcc32.exe test.dpr

Embarcadero Delphi for Win32编译器版本23.0
版权所有(c)1983,2011 Embarcadero Technologies,Inc.

test.dpr(3)致命:F1026找不到文件:'SysUtils.dcu'

c:> dcc32.exe test.dpr
Embarcadero Delphi for Win32 compiler version 23.0 Copyright (c) 1983,2011 Embarcadero Technologies, Inc.
test.dpr(3) Fatal: F1026 File not found: 'SysUtils.dcu'

发生在Delphi XE。

This doesn't happen to Delphi XE.

推荐答案

如果您只想使用命令行(不带dcc32.cfg),则命令行参数你正在寻找是-NS来指定搜索的命名空间...

If you just want to use the command line (without dcc32.cfg), the command line parameter you are looking for is -NS to specify the namespaces to search in...

所以,你会有这样的:

dcc32.exe -NSsystem;vcl test.dpr

这应该使编译器在 System VCL 命名空间(添加VCL以显示如何附加多个命名空间)。

This should make the compiler look for units in the System and VCL namespaces (VCL added to show how to append more than one namespace).

此信息在 Embarcadero论坛。我还没有XE2,所以我无法测试。

This information was found on the Embarcadero Discussion Forums. I don't yet have XE2 so I couldn't test it.

这篇关于Delphi XE2:使用dcc32.exe无法编译一个简单的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆