ProtectorOfUbi
ProtectorOfUbi

Reputation: 327

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.

Screen shot of the error.

Upvotes: 0

Views: 1190

Answers (1)

David Heffernan
David Heffernan

Reputation: 613461

crt is not part of the Delphi RTL. The original crt unit was part of Turbo Pascal and supports console mode operations. There are a variety of ports of crt to 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. It's possible that this is old TP code that needs more porting. Or perhaps it is modern Delphi code that assumes a particular crt port. Or perhaps the code is intended for a different Pascal compiler, for instance 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.

Upvotes: 2

Related Questions