Re: compiler switch -c
- From: kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Steven G. Kargl)
- Date: Wed, 6 Feb 2008 21:32:22 +0000 (UTC)
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/
.
- Follow-Ups:
- Re: compiler switch -c
- From: Gerry Ford
- Re: compiler switch -c
- From: Steve Lionel
- Re: compiler switch -c
- References:
- compiler switch -c
- From: Gerry Ford
- compiler switch -c
- Prev by Date: compiler switch -c
- Next by Date: Re: compiler switch -c
- Previous by thread: compiler switch -c
- Next by thread: Re: compiler switch -c
- Index(es):
Relevant Pages
|
|