Re: compiler switch -c



In article <1202332397_5659@xxxxxxxxxxxxxxxxxxxxx>,
"Gerry Ford" <invalid@xxxxxxxxxxx> writes:
I'm using a new compiler and am uncertain about a variety of things,

Clearly. :)

beginning with the switches. When I type
gfortran -c fruit.f90
, it is meant to mimic
ifort -c fruit.f90

gfortran's -c option comes from a long history of compilers
on Unix-like platforms. It is not meant to mimic ifort.

, which I thought, yields the intermediate files instead of an executable.
Indeed, five minutes ago I typed
gfortran -c fruit_util.f90
, and got a .o and .mod file out of it without objection.

If you got a .o and zero or more .mod files, then -c did its job.

As to the specific complaints, there were many:
fruit.f90:343.28:

function get_last_message_
1
Error: Expected formal argument list in function definition at (1)

Without seeing source code and without knowing the exact gfortran
command and without knowing the version of gfortran, it is amazingly
difficult to give any advice.

--
Steve
http://troutmask.apl.washington.edu/~kargl/
.



Relevant Pages

  • Re: Specific names for intrinsic functions and optional arguments
    ... nor gfortran to work right. ... ifort 9.something, and SGI IRIX f90. ... if I specify an "optional" BACK dummy arg in the interface ...
    (comp.lang.fortran)
  • Syntax check for IMPLICIT statement
    ... gfortran an ICE and causes incorrect output for ifort, ... In the sense that if the LEN is changed to 3 both ifort and gfortran ... end program startest ...
    (comp.lang.fortran)
  • Re: Formatted stream I/O
    ... gfortran and ifort agree here, ... ifort writes a single "b". ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: compiler problem
    ... i was just trying to see the performance of different compiler ... and there is a problem inthis part of the code: ... while compiling with ifort, its converging after 160k steps, but even ... after waiting for 1000k steps with gfortran, ...
    (comp.lang.fortran)
  • Formatted stream I/O
    ... stream I/O, and I have confess I am still baffeled about some ... gfortran and ifort agree here, ... ifort writes a single "b". ...
    (comp.lang.fortran)