Hi,
I am trying to port a 3D graphics package from VMS/Alpha with DEC Pascal to Solaris 7 (a.k.a. Solaris 2.7). I have installed version 19990119 of gpc with version 2.8.1 of gcc.
I have successfully compiled the first three levels of the graphics package. When compiling level4.pas, I get a 'fatal error 6' message, a .gpi file but no .o file.
I systematically trimmed code (whole functions and procedures) off the end of the source file until is compiled. Most of the implementation section was gone at that point. I tried commenting out the same code with '(*' and '*)' with the same result: it compiled. I then tried to remove only the code on the border, i.e. the compilation failed, I removed another procedure, and it compiled; that last procedure is the one I removed from the full source. This was based on the assumption that some code triggered the failure. The compilation failed with the 'offending' code removed. I abandonned that avenue of research.
Then I tried gcc debug options. I specifed '-da' and got about a dozen debug files (.sched2 & .dbr were empty). Specifying '-dJ' did not produce the expected .sched2 file.
What is the next step?
Try using the latest gcc as a base?
Use Modules instead of Units? I would need documentation of those.
Convert to Modula2? Is this even possible? How different are the languages? Is there a free compiler out there?
Switch to C (use p2c, the Pascal to C translator) and abandon Pascal entirely?
Help.
Thanks.
P.S. I joined the list a few minutes ago. To ensure that I get your reply, please 'cc' to me directly. Thanks.