Hello all:
I am new to gnu pascal, so this is a newbie question:
I have a _ton_ of code written ca. 1992/3 on Borland Pascal 5.0 which for various reasons I need to port to a Unix environment: the present version runs on DOS:
I downloaded the binary for linux-(i386) and installed on my linux box..no problems (at least, not yet:) (i have gcc 2.7.2)...thinking "i'll just do gpc on these files and all will be OK "...:)
when i compiled one of the (several hundred) files i have in my legacy code (for which the programmer has left and gone to a better life on another planet)
I got errors involving the following:
1. ASSIGN statement appears as undeclared identifier (use this function first.. sounds like a gcc type error for undeclared function identifiers) isn't this a "standard" pascal fn? if not, what do i do now?
2. all directives were flagged as errors e.g {$O+ foo) was unrecognized ($I+ foo) was OK, complained couldn't open the file foo.pas (which turned out to be right).. so the syntax of {$xx} appears to work
basically i don't really know what the $O+ does..besides being called an overlay: this entire body of code apparently has to be compiled in Borland Pascal with "Overlay ON"...
does anybody know what that means, and how I could move to gpc smoothly: is there a list of stuff in BP5.0 that's NOT in GPC and vice versa? am i in trouble with many other built in functions..e.g I do need the DELAY function (i think it's built in) to wait a given delay time is this available in gpc?
many thanks ( and i have a feeling i'll be posting many msgs to this forum) badri