This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: fortran/3681: Problem preprocecisng a fortran source code with cpp


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)


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