Hi,It would be easier if you could contact P. Dold, or A. Billing, or M. Wentzel, or G. Ekama, or G. Marais from University of Cape Town.
I'm trying to compile this program written in Turbo Pascal in 1991:
https://github.com/icra/uct-model (https://github.com/icra/uct-model)
In the console, I did:
fpc UCTOLD.PAS
And I got this error:
Free Pascal Compiler version 3.0.0+dfsg-11+deb9u1 [2017/06/10] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling UCTOLD.PAS UCTOLD.PAS(5,2) Warning: Unsupported switch "$N" Compiling STRINGS.PAS STRINGS.PAS(1,3) Fatal: Syntax error, "UNIT" expected but "PROCEDURE" found Fatal: Compilation aborted Error: /usr/bin/ppcx64 returned an error exitcode
It seems that the compiler finds an error in the STRINGS.PAS file, but I'm a total novice in Pascal so, I need help to compile this program.
I posted a screenshot here:
https://github.com/icra/uct-model/issues/1
(https://github.com/icra/uct-model/issues/1)
Thank you
Is this solution (theory and its formulas) still valid after almost 3 decades?Believe it or not: Newton's Law of Gravity is still valid after more than 300 years.
Write it new again.Yes, I agree. But I think the conversion is easier if the old source still can be brought back to life, just for comparison of the results etc. If you don't get happy with FPC you could also thinking of using the old original Turbo Pascal versions which are free now as "Antique Software" (https://web.archive.org/web/20040203055603/http://bdn.borland.com/museum/).
Borland BGI was implemented very early into fpc. And it still exists!Yes. I use FPC 3.0.4 Graph unit for testing and it works (... with minor issues on Vista 32b).
Look: https://www.freepascal.org/docs-html/current/rtl/graph/initgraph.html (https://www.freepascal.org/docs-html/current/rtl/graph/initgraph.html)
Winni
Everybody does know that.Is this solution (theory and its formulas) still valid after almost 3 decades?Believe it or not: Newton's Law of Gravity is still valid after more than 300 years.
(I assume) some Windows versionOops, "assumption is the mother of all ..." I just noticed "Target OS: Linux for x86-64". So the sf link will be irrelevant too. But a virtual machine can still be your friend, at least you'll have it running without too much work. I tried with DOSBox (on Windows XP) and after some fiddling with paths it compiled and run (despite TPX throwing 'out of memory' when trying to start it, the .exe was there). I see no reason why it wouldn't work on Linux too.
I made a CRTForm and redirected the WRITE IO over to it, put in the needed calls to support the program, GotoXY,TextCOlor, BackgroundColor , ClrScr etc...
Looks like someone's home work at UTC
At least there are pretty colors :D