This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: gfortran preprocessing
- From: Philippe Schaffnit <P dot Schaffnit at access dot rwth-aachen dot de>
- To: Donald Kenzaakowski <kenzakow at craft-tech dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Thu, 04 Jan 2007 13:59:06 +0100
- Subject: Re: gfortran preprocessing
- Organization: Access e.V.
- References: <459CF8C8.2050306@craft-tech.com>
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