CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   %23include paths (http://www.cfd-online.com/Forums/openfoam/60759-23include-paths.html)

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:57.