fortran/3681: Problem preprocecisng a fortran source code with cpp
Toon Moene
toon@moene.indiv.nluug.nl
Fri Jul 13 13:42:00 GMT 2001
aoliva@gcc.gnu.org wrote:
> Synopsis: Problem preprocecisng a fortran source code with cpp
>
> State-Changed-From-To: open->closed
> State-Changed-By: aoliva
> State-Changed-When: Fri Jul 13 12:33:58 2001
> State-Changed-Why:
> The C preprocessor is designed to preprocess C and C++, not Fortran. Try cpp -traditional and hope it helps. If not, look into other preprocessing alternatives, such as m4.
Or better even - try g77 -E file.F
[ g77 uses a different preprocessor than cpp - hence you can never
exactly match the g77 behaviour with cpp ]
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)
More information about the Gcc-bugs
mailing list