This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
gfortran preprocessing
- From: Donald Kenzaakowski <kenzakow at craft-tech dot com>
- To: fortran at gcc dot gnu dot org
- Date: Thu, 04 Jan 2007 07:53:28 -0500
- Subject: gfortran preprocessing
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