CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   [SOLVED] Intel Compiler 12.1 + Ubuntu 11.10 (gcc 4.6) + OpenFOAM 2.0.x (

wyldckat November 4, 2011 15:52

[SOLVED] Intel Compiler 12.1 + Ubuntu 11.10 (gcc 4.6) + OpenFOAM 2.0.x
Greetings to all!

I've been experimenting with Icc (although I have an AMD machine :p) and I'm stuck with Ubuntu 11.10. Those two combined resulted in a dangerous mix where building OpenFOAM 2.0.x out of the box is impossible... unless you know the trick :cool:

Intel's Compiler 12.1 does not support the bleeding edge C++0x features provided with Gcc 4.6, so there are a lot of crazy messages that pop up if one does not add "-U__GXX_EXPERIMENTAL_CXX0X__" to the recipe (source: icpc 12.1.0, Ubuntu 11.10 (oneiric) and g++). Edit these two files and add the expression in bold:
  1. "wmake/rules/linux64Icc/c++"

  2. "wmake/rules/linux64Icc/c"

And there you go, it's ready to cook :D

Best regards,

PS: Wondering why I wrote Ğalthough I have an AMD machineğ. This is why:

All times are GMT -4. The time now is 14:35.