how to force preprocessing of *.f90 files (i.e., not *.F90)
Dimitri Komatitsch
dimitri.komatitsch@univ-pau.fr
Mon Dec 11 21:13:00 GMT 2006
Dear all,
thank you very much! Everything works fine now.
Best regards,
Dimitri.
Tobias Schlüter wrote:
> Dimitri Komatitsch <dimitri.komatitsch@univ-pau.fr> wrote on Mon, 11 Dec
> 2006:
>> Is there a way of forcing preprocessing in gfortran
>> when the files are named *.f90 rather than *.F90 ?
>> I maintain a package in which all files are called *.f90 but contain
>> #define directives. With other compilers (for instance Intel ifort)
>> we force preprocessing by adding the "-cpp " option, is there something
>> equivalent in gfortran? if not, it could be a good idea to add it.
>>
>> (I checked the manual and did not find such an option, I hope I did not
>> miss it...)
>
> There is, it's documented under the "suggestive" title 'options
> controlling the kind of output': -x f95-cpp-input
>
> Cheers,
> - Tobi
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
--
Dimitri Komatitsch - dimitri.komatitsch aT univ-pau.fr
Professor of Geophysics, University of Pau, France
http://www.univ-pau.fr/~dkomati1
More information about the Fortran
mailing list