Preprocess files with gcc/gfortran vs. cpp
Nick Papior
nickpapior@gmail.com
Fri Feb 19 19:41:00 GMT 2016
Thanks!
You have been of great help.
2016-02-19 20:40 GMT+01:00 Jonathan Wakely <jwakely.gcc@gmail.com>:
> On 19 February 2016 at 19:36, Nick Papior wrote:
>> Damnit, I was kind-of hoping this would not break compatibility. :(
>>
>> Then I guess I am forced to use cpp to create my actual sources.
>>
>> Thanks for the prompt answer!
>>
>> PS. Are there options to use the C-processor with gfortran?
>> I tried:
>> $> gfortran -Xpreprocessor "-x c11-cpp-input" <source>
>> f951: Error: command line option ‘-x c11-cpp-input’ is valid for the
>> driver but not for Fortran
>>
>> hrmph...
>
> I don't know. If nobody else on this list gives you an answer you
> could try asking on the gfortran list.
--
Kind regards Nick
More information about the Gcc-help
mailing list