This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: -cpp and 'include'
Tom,
Tom Browder wrote:
> Is this correct behavior:
>
> main.f:
> ----------
> program main
> include "include.inc"
Here, it is unclear whether "include.inc" should be run through CPP or
not. Most compilers (including gfortran) don't run "include.inc" through
CPP, some do. The simplest would be to replace Fortran's include
"include.inc" by CPP's #include "include.inc".
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.
Tobias