Reputation: 327
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.
Upvotes: 0
Views: 1190
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