The following code should cause any Fortran compiler to complain:
PROGRAM THING
WRITE (*,*) "Hello from Thing!"
END
STOP
Either this is two programme-units (in Fortran-speak), in which
case there should be a second END after the STOP, or the
STOP should be before the END. The command-line FTN95
compiler gives:
NO ERRORS <THING>
STOP
*** More than one main program encountered
*** Missing END PROGRAM
2 ERRORS
*** Compilation failed
In contrast, compilation under Plato reports no errors, but
linking reports "Cannot find thing.obj" --- this is because the
compilation failed.
If you get such problems, please try using the command-line interface.
Produced from the SGML: /home/isd/public_html/_salford/_reml_grp/salford_compilers.reml On: 25/7/2002 at 9:59:15 Options: reml2 -i noindex -l long -o html -p multiple