preprocessor token "#" doesn't work in gfortran as in gcc, intel-fortran or sun-fortran compiler
Tim Prince
TimothyPrince@sbcglobal.net
Wed Jun 10 21:12:00 GMT 2009
Steve Kargl wrote:
> On Wed, Jun 10, 2009 at 10:29:16PM +0200, Maik Beckmann wrote:
...
>>
>> ifort and sunf95 both take
>> -fpp
>> to preprocess a source file while gfortran wants
>> -cpp
.....
>> No show stoppers at all, but inconvenient.
>>
>
> Have you asked Intel and Sun to support the gfortran
> syntax and feature?
>
>From ifort -help:
-E preprocess to stdout
-EP preprocess to stdout, omitting #line directives
-P preprocess to file, omitting #line directives
-preprocess-only
same as -P
-fpp[n], -[no]fpp
run Fortran preprocessor on source files prior to compilation
n=0 disable running the preprocessor, equivalent to nofpp
n=1,2,3 run preprocessor
-cpp[n] same as -fpp[n]
As most of us use the same pre-processing options for ifort and gfortran,
we don't notice that others also exist.
More information about the Fortran
mailing list