Dear Dumuxists,

using eclipse as IDE and considering the code in the eclipse editor, a lot of correct code seems to be wrong due to a lot of definitions set only within the compiling process, thus appears underlined with red color.

Is there some global solution to prevent this issue, or does one either has to solve this problem for each single case, or accept that the editors properties to detect errors is mixed with error symbols which are not related to errors?

A simple example: The Macro DUMUX_VERSION missing in the plain src code due to being set along compilation is undefined, causing that everything related or based on DumuxMessage will appear as error.

Some workaround might be to construct something in cmake that creates an additional .h file in the entire source code where the missing definitions are set for the case of interest, but this solution is not perfect nor consistent for the general case, and to apply similar techniques to all code appearing in red are possible in principle, but not useful in practice, consuming too much time.

Regards and thank you for your answers

      Markus

_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to