0
votes

I'd doing Free Pascal program, and when I'm importing module Crt, showing error:

crt.pas(15,9) Error: Dublicate identifier "SYSTEM"
crt.pas(15,9) Error: Dublicate identifier "system"
crt.pas(116,1) Fatal: There were 2 errors compiling modele, stopping
crt.pas(0) Fatal: Compilation aborted 

Imported modules in program:

uses
  Crt,
  Math;

I'm using DOS system On Win10 and Win7 PC compiles fine

1
That obviously doesn't usually happen. Please add a minimal, reproducible example to your q as well as the first 16 lines of your Crt.Pas. - MartynA
@MartynA Crt - it's standart Free Pascal library - KvaksMan play
Well, I just entered this code into Lazarus and it compiles without error: program UsesCrt; uses Crt, Math; begin end..Like I said, you need an mre. - MartynA
@MartynA I say that it is FREE PASCAL STANDART LIBRARY, but I didn't say about Lazarusm ,ay be this code can compile in Lazarus with errors. On Win10 pc Crt module works fine, but on DOS system - compiling with errors. - KvaksMan play
Pascal ABC is unrelated and incompatible. Free Pascal comes with a Crt, and should be in the default installation. Just use it, and move any remaining ABC sources away. Apropos, the error messages look weird with "Dublicate" and "Modele". What is going on there? - Marco van de Voort

1 Answers

2
votes

try to reinstall Free Pascal IDE or copy files from working Free Pascal IDE

on Dos no LFN support, for info and this package can be not installed