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'.").
[code]Free Pascal Compiler version 1.0.6 [2002/04/23] for i386
Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Win32 for i386
main1.pas(1,2) Warning: Unsupported switch $N
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[/code]
I look at these two lines:
I changes line 52.
I also tried:
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:
How to get rid of those two errors?