Hi Catherine,
On Wed, 4 May 2005 05:30 am, you wrote:
> Subroutine NotWorks( ... ) ! will not compile
>
> ! Variable definitions
>
> #include "c_include.h"
>
> include "f90_include.inc" (includes references to macros)
>
> return
> end subroutine NotWorks
As the others said, you are mixing up two different concepts. The Fortran
include statement is a part of the Fortran language. cpp shouldn't know
about it.
Also, cpp only reads and outputs one file at a time, so unless cpp
preprocesses the Fortran include as a cpp #include, I don't know how it could
be done in general.
Can you get cpp to #include f90_include.inc? Alternatively you could run cpp
on f90_include.inc (copy the #include "c_include.h" into it too) via your
makefile and then do a Fortran include on the resulting file.
Regards,
Daniel.
---------------------------------------------------------------------
Dr. Daniel Grimwood Room : 303.208
Nanochemistry Research Institute Email: [log in to unmask]
Curtin University of Technology Phone: +61 8 9266 3204 (office)
P.O. Box U 1987, Perth +61 8 9266 3780 (lab)
Western Australia, 6845 Australia Fax : +61 8 9266 4699
|