The following instruction is a slight adaptation of Fixing the "Unresolved inclusion" Warnings of Eclipse Indexer
In the Project Explorer,
In the Eclipse main menu
- select "Project" -> "Properties"
- navigate to "C/C++ General" -> "Paths and Symbols" -> (on the right) "Includes"
In the "Languages" box on the left
- select GNU C++ (you might want to do the same for GNU C, though it doesn't seem to be necessary as wxWidgets is written in C++)
- now select "Add..." on the right side of the "Include directories" box
In the "Add directory path" window that pops up,
- enter OMNETPP_ROOT_DIRECTORY/mingw/include (e.g., "C:/omnetpp-4.0/mingw/inclue") as "Directory"
- check "Add to all configurations" (this refers to Build, Release, etc...)
- do the same thing for OMNETPP_ROOT_DIRECTORY/mingw/lib/gcc/mingw32/4.2.1-sjlj/include/c++ (for STL headers)
- select "OK"
In the "Indexer" box on the left
- enable the "Enable project specific settings" checkbox
- select "Apply"
- close the project Properties window by selecting "OK"
This will resolve most of the inclusions and rid you of the annoying warnings, however you will have to do this once for every new project.