Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] I use preprosessor fortran



2010/3/18 細見 達男 <t_dragon_2000@xxxxxxxxxxx>
I use photoran.

But I have one question.

My program use preprosessor.
ex
subroutine AA

#include "xxxx.h"
...
...
end subroutine


But photoran say
 Syntax error: unexpected extraneous character


Why?


The C preprocessor is not a part of the Fortran standard.  So, preprocessor directives are syntax errors as far as Fortran is concerned.  We have been working on integrating the C preprocessor with Photran but that work is not yet finished.

-Ralph Johnson


Back to the top