ITEM: D6345L

FORTRAN syntax errors and listing in one file.




Question:

I am using PK and PV preprocessor options.  I can get a listing of 
the file and get compiler errors to standard output.  I want to know 
if the FORTRAN compiler can produce a listing with the syntax errors 
in the file where the error actually occurs.

Response:

If you are using the -Wp,-lFILENAME option to produce a listing, the
syntax errors will be displayed in FILENAME before the listing of the
FORTRAN source code.  The line number containing the syntax error will
be indicated along with the error.  However, if you wish to produce a 
listing with the syntax errors located in the source code at the actual 
point of the error then you should try using the -qsource flag when 
compiling rather than -Wp,-lFILENAME.  This will place the listing in a 
file called FNAME.lst where FNAME is the name of the FORTRAN file being 
compiled (minus the .f extension).



Support Line: FORTRAN syntax errors and listing in one file. ITEM: D6345L
Dated: September 1993 Category: N/A
This HTML file was generated 99/06/24~13:30:56
Comments or suggestions? Contact us