Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » OpenFOAM #includes inside functions(Eclipse ignores #includes inside functions)
OpenFOAM #includes inside functions [message #1869438] Fri, 16 August 2024 16:39
Ivor Clifford is currently offline Ivor CliffordFriend
Messages: 1
Registered: August 2024
Junior Member
In OpenFOAM they tend to use #includes directly within the main function so that certain commonly used variables can be easily constructed in each different solver. This is clearly not typical C++ programming but it does help to keep the main function of these complicated numerical analysis solvers quite short and clean without hiding the details.

I have noticed that the eclipse parser ignores the #includes when they are inside a function e.g.

int main(int argc, char *argv[])
{
#   include "setRootCase.H"
...
}


where "setRootCase.H" defines several variables. All of these variables are flagged as undefined by the parser.

Is there a setting to tell the parser not to ignore these #includes.
I am using Eclipse 2024-06 on RHEL8.

Thanks in advance
Previous Topic:How to read in/write to a file in Eclipse C
Next Topic:Search view issues with tabs
Goto Forum:
  


Current Time: Thu Oct 03 16:41:13 GMT 2024

Powered by FUDForum. Page generated in 0.02901 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top