Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

gfortran errors/warnings

Status
Not open for further replies.

Varved

Materials
Feb 16, 2009
7
Hello,
I am attempting to compile a .f90 using gfortran. After commanding the compiler to do so, i am bombarded with a list of warnings. In particular:

"Warning: Deleted feature: Pause statement at ..."

The compiler then gives the filename:line #:character # so I can locate the problem. This is great, although, I don't know how to locate the line w/o counting thousands of lines. And, I'm having trouble finding reference to the meaning of these errors. Can someone please push me in the right direction?

Evan
 
Replies continue below

Recommended for you

gfortran should compile standard f90 and f77 source code with no problems. Does your code contain compiler specific statements? Or is it may be Fortran 66 or Fortran IV ?

There are several good editors which indicate the line number and column for the position of the cursor. I use pfe32 (programmers file editor)
 
So, there's a lesson to be learned here, and from current best practices, which is to NOT have thousands of lines of code in a single module.

TTFN

FAQ731-376
 
I discovered that the code compiled and produced the .exe, although i was distracted by the warning messages. Ifort and gfortran were producing different output messages, Im guessing that this is dependent upon warning message settings. Thanks for the tip Johnhors, Ill try to use pfe32 to investigate the warnings in order to learn a bit more about general fortran practices. I am quite the newbie. Any tips on deciphering the warning messages?
 
Fortran warning/error messages are usually self explanatory, I'm afraid that if you can't understand their meaning then should you be compiling this code? IRstuff's comment is true but it sounds like that you have inherited this code, how old is it? If it is fortran77 or later then it should be fine, any earlier and you could have a very major task on your hands, certainly not the job for a newbie!
 
Re: Line numbering

On Linux, if you're using vi, to show line numbers type :se li
To go to a specific line, type :linenumber

On Windows, if you're using notepad, switch off Format/wordwrap and switch on the status bar. This will show the line number.
To go to a specific line, type Control G. A dialog will pop up and you just type the line number.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor