I have a small program : --------------------- Module MODULE interface; export MODULE = (DoJob);
PROCEDURE DoJob;
end.
-------------------------- "gpc -v" on Solaris gives :
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs gpc version 2.1 (20020510), based on 2.95.2 19991024 (release)
-------------------------- I get this error: ./src/module.p:1: parse error before `Module' -------------------------------------------------
But on my alpha plateform, I have got no problem.
"Gpc -v" on Alpha gives :
Reading specs from /usr/local/lib/gcc-lib/alphaev6-unknown-linux-gnu/3.2.1/specs Configured with: /home/developpement/users/mkhaldi/gcc-3.2.1/configure --enable-languages=pascal Thread model: posix gpc version 20030209, based on gcc-3.2.1
What is wrong? Is my solaris gpc is too old? Thanks
Mehdi Khaldi wrote:
I have a small program :
Module MODULE interface; export MODULE = (DoJob);
PROCEDURE DoJob;
end.
"gpc -v" on Solaris gives :
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs gpc version 2.1 (20020510), based on 2.95.2 19991024 (release)
I get this error: ./src/module.p:1: parse error before `Module'
But on my alpha plateform, I have got no problem.
"Gpc -v" on Alpha gives :
gpc version 20030209, based on gcc-3.2.1
What is wrong? Is my solaris gpc is too old?
Or your Alpha GPC too new. ;-)
Well, using `module' as both a keyword and an identifier is obviously a strange thing to do (and not EP conformant).
Recent GPCs do allow it, so if you really want to do it, you can. But you'll need at least 20030209 on all platforms then.
Frank