Gloria, Jing wrote:
I have installed GPC and GCC on a Solaris 7 x86 platform. We are migrating software from RISC/SPARC Sun OS to x86 Solaris 7.
GPC is version 19991030. based on 2.95 19990728. GCC is 2.95.2.
The GPC Mailing List archive web site has been unreachable. I apologize if the following question has already be addressed in the past.
Problem: GPC will not compile our Pascal source files since they do not have any Program statements.
Sample program:
Procedure hello; begin Writeln ('PASCAL says: Hello, world.'); Writeln (' ') End;
****end of sample program****
When I run GPC (gpc -c filename), I get the following messages: warning: missing program header parse error at end of input
The only way I found to get gpc to compile is by adding: Begin End.
at the end of the source file. I still get the warning message about missing program header but GPC compiles. I would prefer not to do this since we will be using the same source files for the maintenance of the software in both SPARC/RISC and Intel x86 platforms.
What a "program" which contains only the declaration of a procedure is intended to do ? It cannot lead to anything executable ?
Maurice