简体   繁体   English

我该如何解决? 找不到f1026文件'crt.dcu'

[英]How to I fix this? f1026 file not found 'crt.dcu'

How can I fix this error? 如何解决此错误?

I have this error when I compile the code. 编译代码时出现此错误。 I have no idea what it means or how I can fix this. 我不知道这意味着什么,也无法解决。

错误的屏幕截图。

crt is not part of the Delphi RTL. crt不属于Delphi RTL。 The original crt unit was part of Turbo Pascal and supports console mode operations. 最初的crt单元是Turbo Pascal的一部分,并支持控制台模式操作。 There are a variety of ports of crt to Windows. 有许多crt到Windows的端口。 I don't have a good recommendation, but a websearch might lead you to a solution. 我没有很好的建议,但是网络搜索可能会带您找到解决方案。

Now, do not be surprised if you need more work to get this code to compile. 现在,如果您需要更多工作来编译此代码,请不要感到惊讶。 It would appear that you have not written the code yourself because if you had you would know all about crt . 看来您还没有自己编写代码,因为如果您编写了代码,那么您将了解crt全部知识。 It's possible that this is old TP code that needs more porting. 这可能是旧的TP代码,需要更多的移植。 Or perhaps it is modern Delphi code that assumes a particular crt port. 或者,可能是现代Delphi代码采用了特定的crt端口。 Or perhaps the code is intended for a different Pascal compiler, for instance FreePascal. 或者,该代码可能是针对其他Pascal编译器的,例如FreePascal。

If you want more specific advice you would do well to know more about where the code originated. 如果您想获得更具体的建议,最好对代码的起源有更多的了解。 I would ask whoever gave you the code to tell you what the intended development environment is. 我想问问给您代码的人告诉您预期的开发环境是什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM