CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   %23include paths (

zeliboba September 16, 2008 16:14

hi everyone! I'm curious wh
hi everyone!

I'm curious why in source code developers use simply

#include "someFile.H"

and add many -I$(LIB_SRC)/path/to/include to compiler options, instead of inclusion the path directly into the source file, like

#include "path/to/include/someFile.H"

and add only one option -I$(LIB_SRC). this makes code more readable and facilitate code browsing with various code analyzers.

is there a particular reason for this type of inclusion?

All times are GMT -4. The time now is 12:17.