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: -cpp and 'include'


Tom Browder wrote:

On Mon, May 18, 2009 at 00:44, Tobias Burnus <burnus@net-b.de> wrote:

There was some discussion whether gfortran -cpp also should use CPP for
"include" but the outcome was non-conclusive with inclination to keep
the status quo.

I tested the same code that with g95 and Sun f95 and they also error out there.


However, it seems to me that if pre-processing is going to be done
that it should be done on ALL the code.

(I would like to change my code to solve the problem but unfortunately
it isn't up to me at the moment.)

We (http://hirlam.org) found this out some 15 years ago and switched to #include and never looked back :-)


--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.4/changes.html


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