Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

gfortran errors/warnings

gfortran errors/warnings

gfortran errors/warnings

  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?


RE: gfortran errors/warnings

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)

RE: gfortran errors/warnings

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.


FAQ731-376: Eng-Tips.com Forum Policies

RE: gfortran errors/warnings

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?

RE: gfortran errors/warnings

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: gfortran errors/warnings

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close