无法打开文件“STDCTRLS.OBJ”
首先,抱歉我的英语不好。
我今天开始使用 Delphi,创建了一个名为 test 的简单表单示例。
unit teste;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm2 = class(TForm)
Edit1: TEdit;
Label1: TLabel;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
end.
我在谷歌搜索,然后在这里搜索,没有找到这个问题的答案,我无法运行它,因为日志返回这些错误:
[ILINK32 Error] Fatal: Unable to open file 'STDCTRLS.OBJ'
我不知道如何修复它,你能帮助我吗?
谢谢! 此致。
First of all, sorry for my bad english.
I started with Delphi today, created a simple form example named test.
unit teste;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm2 = class(TForm)
Edit1: TEdit;
Label1: TLabel;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
end.
I searched at google, then here and did not find an answer for this problem, I´m not able to run it, because the logs return these errors:
[ILINK32 Error] Fatal: Unable to open file 'STDCTRLS.OBJ'
I had no idea how to fix it, could you help me?
Thanks!
best regard´s.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来您已经创建了一个 C++Builder 项目,但是是用 Delphi 代码编写/粘贴的。 Delphi 根本不使用
ILINK
,也不使用STDCTRLS.OBJ
(它会抱怨StdCtrls.dcu
)。由于项目中没有功能代码,所以我只能重新开始。使用
文件|关闭全部
,并且不保存更改。然后使用File|New|VCL Forms Application - Delphi for Win32
,并按F9查看是否可以运行该项目。It looks like you've created a C++Builder project, but written/pasted in Delphi code. Delphi doesn't use
ILINK
at all, and it doesn't useSTDCTRLS.OBJ
(it would complain aboutStdCtrls.dcu
instead).Since you have no functional code in the project, I'd just start over. Use
File|Close All
, and don't save changes. Then useFile|New|VCL Forms Application - Delphi for Win32
, and hit F9 to see if you can run that project.确保 IDE 的搜索路径配置正确,并且项目具有对 RTL 和 VCL 包的正确引用。
Make sure the IDE's search paths are configured correctly, and that the project has correct references to the RTL and VCL packages.