Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran] Question regarding preprocessing in Photran

Hi all,

I'd like to request your kind help regarding using the preprocessing functionality in Photran.

To my understanding from the Photran documentation, if a FORTRAN source code has an extension with capital letters, such as F90 or F95, this file will be automatically preprocessed when the project is being built.  But I unfortunately have not got this to work so far.  

For example, if I try to build a project with only one file main.F90: (and have the "Source Form" settings set to ".F90 - free form and C preprocessed")


program main
#ifdef __linux__
    print *,"Hello, world!"
#endif
end program
Photran would say "Nothing to build for project xxx".  I have tried this with Photran 8 and GNU gfortran compiler on both Windows and Linux, as well as Intel Fortran compiler on Linux but they all failed.

It seems that no one else had this problem before so maybe I am doing this wrong...  Any help would be much appreciated.

Thanks,
Guojing

Back to the top