Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code listing from gfortran with in-line errors and warnings?

Status
Not open for further replies.

pjansson

Technical User
Sep 1, 2013
6
US
I was unable to find an option to generate a compiler listing of my code (especially with compiler line numbers), which I have found useful in the past. Forgive me if I am overlooking something obvious. I am running on Mac under OS 10.6. Thanks in advance for any hints.
 
I searched and found nothing. IMO both free compilers - gfortran and g95 - cannot generate compiler listings. But when you try to compile an erroneous source both compilers output messages with a source line where the error occured.

 
Thanks for verifying this. I will have to live with it. Given the cost of the compiler, I won't complain.
 
Compiler listings are common on legacy systems. At my work on IBM iSeries (aka AS/400) I'm using them too, i.e.: I submit the compilation command, then look in the spoolfile which contains the listing produced by the compiler. Jump to the end of the listing and when the compilation failed then search for the lines where errors occured.

But, IMO these compilers like gfortran and g95 are designed to be used with an appropriate IDE, which will you navigate to the source lines where errors occured.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top