Community
Participate
Working Groups
The Free Form - C Preprocessed source form does not process include files correctly. Repeat by: 1. Create a Fortran project. 2. Create a file test.F90 containing: subroutine test implicit none interface #include test.h end interface end subroutine test 3. Create a file test.h containing: subroutine foo end subroutine 4. Add the project path to Paths and Symbols in the Fortran General properties. 5. Open test.F90. A syntax error is displayed in the outline view.
The syntax for the #include line should be #include "test.h" (with double-quotes). Does that fix the problem?
It does fix this problem (typo on my part), but to better reflect the problem I'm seeing, do the following: 1. Create a subdirectory in the project 2. Move test.h to the subdirectory 3. Add the subdirectory path to the Paths and Symbols as a workspace path At this point, the syntax error is displayed again. However, if I add the sub-directory path to Paths and Symbols as a filesystem path, it seems to resolve correctly. It looks like workspace paths are not being handled correctly.