Hello!
I was looking for the answer here but I couldn't find: http://www.freepascal.org/port.var .
I've got old code in Turbo Pascal and I try to run it on Dev-Pascal 1.9.2. (I also tried Lazarus application, but there was "Error. Project raised exception class 'External: SIGSEGV'.").
Free Pascal Compiler version 1.0.6 [2002/04/23] for i386
Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Win32 for i386
Compiling f:\intern\26turb~1\program\main1.pas
main1.pas(1,2) Warning: Unsupported switch $N
Compiling main2.pas
main2.pas(1,2) Warning: Unsupported switch $N
main2.pas(308,15) Error: call by var parameters have to match exactly: Got LONGINT expected SMALLINT
main2.pas(645,76) Warning: Comment level 2 found
main2.pas(843,3) Warning: Comment level 2 found
main2.pas(643,2) Fatal: Unexpected end of file
I look at these two lines:
308: InitGraph(ster,tryb,path);
52: ster:integer=VGA;
I changes line 52.
52: ster:smallint=VGA;
I also tried:
52: ster:shortint=VGA;
But neither of them can help and there's all the time the same error: Got LONGINT expected SMALLINT.
And the other thing, that is "unexpected end of file".
End of the file is as follows:
Resume
end
end;
end .
How to get rid of those two errors?
Greetings!