[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[photran] Does Photran parser use configuration preprocessor symbols?
|
I am using the Kepler release of Eclipse with Photran 8.1. I cannot
get the preprocessor to recognize symbols defined in my fortran
project. Specifically, I have taken the following steps:
1. Create a new fortran project.
2. Add a single source file called testfile.F90 with the following code:
#ifdef FRANKY
program testfile
implicit none
print *, "Hello World!"
end program testfile
#endif
3. Looking at the fortran outline view, there is no outline visible at
all, just the text "<Free Form - C Preprocessed>". This is expected as
the symbol FRANKY has not been defined.
4. Go to project properties-->fortran General-->Paths and Symbols.
Click on the fortran language, add a new symbol FRANKY with value 1.
Check "Add to all configuration" and "Add to all languages." Apply
settings.
5. At this point, the preprocessor does not view FRANKY as being a
defined symbol, even after re-indexing and rebuilding the Photran DB,
etc. The fortran outline view still shows no nodes (I expect at least
the red circle with a "P" for program) and File-->Display Preprocessed
Source shows an empty file.
6. The only way I have been able to get it to work is to add #define
FRANKY at the top of testfile.F90. This is of course not ideal for
projects with many files....
What am I missing? Perhaps the Photran parser does not use the
symbols defined in the project configuration?
Thanks!
Rocky