This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gfortran preprocessing


Hi!

The command line switch '-x f95-cpp-input' does it for me.

Good luck!

Philippe

Donald Kenzaakowski wrote:
> 
> Is there a command line option to allow cpp to be a preprocessing
> front-end to gfortran.  For example,
> I am getting a "Warning: test.f:113: Illegal preprocessor directive"
> and this code section contains preprocessing directives ...
> 
> #undef query
> #ifdef query
>       print *,'Input 2nd function file (y/n)?'
>       read(5,'(a)')ans
>       call caps( ans )
>       if(ans(1:1).eq.'Y')part2=.true.
>       if(part2)then
>         write(6,40)'input filename for 2nd function file:'
>         read(5,40) fv_function2
>         write(6,40)'input filename for 2nd namefile:'
>         read(5,40) fv_name2
>       endif
> #else
>       part2=.false.
>       mass= .false.
> #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]