12 Mar
2005
12 Mar
'05
4:03 p.m.
loop lopy wrote:
I have compiled my program with gpc --standard-pascal ex1.pas -o ex1.aout I got the following error: ex1.pas:15:Wrong order of declerations according to ISO 7158 Pascal in function 'A' :
My code at line 15 is:
function a (b:integer): integer;
What is wrong with it?
A program doesn't consist of just one line. Always send complete programs as errors might depend on the context. That's general advice. Also turn off HTML mails! Now, ISO 7185 requires strict ordering (label, const, type, var, routines). Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8