CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Can't add 3rd header filed through Make/options (https://www.cfd-online.com/Forums/openfoam-programming-development/194172-cant-add-3rd-header-filed-through-make-options.html)

klausb October 11, 2017 07:26

Can't add 3rd header filed through Make/options
 
Hello,

Recently (after upgrading to openfoam5 and gcc 5.4 and now gcc 6.3) I started running into wmake compile issues e.g. with turbulence models.

The problem is, that when I add additional header file locations to Make/options, their content is ignored


EXE_INC = \
-I$(LIB_SRC)/OpenFOAM/lnInclude \
-I$/usr/local/header_source_A/include \ >> this has NO effect, header files included in my source code are not found
-I$/opt/header_source_B/include >> this has NO effect, header files included in my source code are not found

Header files located in /usr/local/header_source_A/include, including header files from /opt/header_source_B/include don't find them. The latter problem includes to some extend the openfoam5/src too but here, I have the impression, that a (substantial) number of symbolic links to lnInclude directories are missing. I reinstalled openfoam5 which had no effect on the problem.

The only thing that works is using absolute paths which is impractical.

How can I add 3rd party header file locations (directories containing header files) for usage with openfoam5 wmake?

Klaus

qiyang November 9, 2017 13:20

I don't think you should add $ before /usr/... and /opt/...

just write -I/usr/local/header_source_A/include \
-I/opt/header_source_B/include


All times are GMT -4. The time now is 00:27.