CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2017, 07:26
Default Can't add 3rd header filed through Make/options
  #1
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 250
Rep Power: 22
klausb will become famous soon enough
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
klausb is offline   Reply With Quote

Old   November 9, 2017, 13:20
Default
  #2
New Member
 
Qi Yang
Join Date: Oct 2017
Posts: 6
Rep Power: 8
qiyang is on a distinguished road
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
qiyang is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[PyFoam] and paraview eelcovv OpenFOAM Community Contributions 28 May 30, 2016 09:23
How to add a new header (.h) in a UDF upeksa Fluent UDF and Scheme Programming 1 March 25, 2015 05:49
How to add 3rd region to chtMultiRegionFoam benk OpenFOAM 1 April 3, 2010 17:22
add filed to OpenFOAM sven82 OpenFOAM Running, Solving & CFD 2 April 28, 2009 06:14
how to add header file shanu FLUENT 1 February 14, 2006 09:00


All times are GMT -4. The time now is 07:51.