|
[Sponsors] |
April 27, 2017, 14:35 |
How to enable C++11 in wmake?
|
#1 | |
New Member
Lukas Lebovitz
Join Date: Mar 2017
Location: Zürich, Switzerland
Posts: 25
Rep Power: 9 |
I'm trying to compile a boundary condition that uses some C++11 features.
When using "wmake" I get the error: Quote:
What do you add to it? |
||
April 27, 2017, 15:28 |
|
#2 |
Senior Member
|
Hi,
You can add -std=c++11 to EXE_INC variable in Make/options. Are you trying to compile BC for OpenFOAM 2.x? Since in 4.x -std=c++0x flag (though deprecated) is in rules. |
|
April 27, 2017, 16:30 |
|
#3 | ||
New Member
Lukas Lebovitz
Join Date: Mar 2017
Location: Zürich, Switzerland
Posts: 25
Rep Power: 9 |
Thanks I just got it to work with
Quote:
Quote:
By the way I'm on 2.4.0. Last edited by lukas.lebo; April 27, 2017 at 17:38. |
|||
May 3, 2019, 14:28 |
|
#4 |
New Member
Hao Li
Join Date: May 2017
Posts: 7
Rep Power: 8 |
Hello, I am setting boundary conditions by means of codeStream and the same error appear. Could you tell me: in which Make/options should I add the "-std=c++11"?
Thanks a lot |
|
May 3, 2019, 15:33 |
|
#5 |
Senior Member
|
There is not Make/options for codeStream, there is codeOptions section. See example here: https://cpp.openfoam.org/v6/classFoa...odeStream.html.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 08:48 |
Problems Installing OF 1.6 32 bit | bucksfan | OpenFOAM Installation | 19 | August 4, 2009 01:36 |
OpenFOAM15 installables are incomplete problem with paraFoam | tryingof | OpenFOAM Bugs | 17 | December 7, 2008 04:41 |
Problem of compilation OF 14Allwmake command not found | erik_d | OpenFOAM Bugs | 13 | September 13, 2008 21:45 |
[OpenFOAM] ParaFoam error message | joey | ParaView | 1 | October 2, 2006 13:28 |