|
[Sponsors] |
Compiling an application with OpenFOAM-1.6-ext ubuntu binaries |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 4, 2011, 13:50 |
Compiling an application with OpenFOAM-1.6-ext ubuntu binaries
|
#1 |
New Member
Join Date: Mar 2010
Posts: 12
Rep Power: 16 |
I use openFoam-1.6-ext on ubuntu. I installed it using binaries and development packages from the repository. I am trying to compile a new application and I get this error:
Code:
/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/label.H:39:19: error: climits: No such file or directory /usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/label.H:40:19: error: cstdlib: No such file or directory In file included from /usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/label.H:130, from /usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/labelList.H:36, from /usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/Pstream.H:44, from /usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/OPstream.H:36, from /usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/parRun.H:36, from /usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvCFD.H:4, Thanks in advance |
|
June 5, 2011, 22:28 |
|
#2 |
New Member
Join Date: Mar 2010
Posts: 12
Rep Power: 16 |
Hello,
OK. I solved this problem by explicitly pointing gcc to /usr/include/c++/4.4 using -I. It seems that my system cannot locate this default path. Now I receive this error: Code:
cc1: error: unrecognised debug output level "nu" make: *** [Make/linux64GccDPOpt/xFoam.o] Error 1 make: *** Waiting for unfinished jobs.... cc1plus: error: unrecognised debug output level "nu" make: *** [Make/linux64GccDPOpt/tractionDisplacementFvPatchVectorField.o] Error 1 |
|
June 6, 2011, 12:33 |
|
#3 |
New Member
Join Date: Mar 2010
Posts: 12
Rep Power: 16 |
The error is solved by a soft link trick to the required include. Now I pass that part but I get this typical error:
Code:
/usr/include/c++/4.4/cstddef:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token /usr/include/c++/4.4/cstddef:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token . . . /usr/include/c++/4.4/cstdlib:102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token /usr/include/c++/4.4/cstdlib:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token /usr/include/c++/4.4/cstdlib:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token /usr/include/c++/4.4/cstdlib:106: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token /usr/include/c++/4.4/cstdlib:107: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token /usr/include/c++/4.4/cstdlib:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token ... |
|
June 6, 2011, 13:08 |
Solved
|
#4 |
New Member
Join Date: Mar 2010
Posts: 12
Rep Power: 16 |
Caused by a stupid mistake. I used .c instead of .C as the extension of my main file.
I leave this note here for future reference of others and myself Good luck ZKM |
|
March 24, 2014, 06:05 |
|
#5 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi ZKM,
Sorry, you posted this already some years ago, but what did you mean by "a soft link trick to the required include"? I have a similar problem when trying to compile an application with wmake: gcc can't find stuff, because for some reason, on my system it's not located in the default search path. I tried to point gcc to the correct path by adding "-I <correct-path>" to Make/options. This seems to work, but it gives me (nearly) exactly the same error you got: cc1plus: error: unrecognised debug output level "nu" So I'm really curious to know how you solved this, can you explain? Thanks in advance, Sita |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is Playstation 3 cluster suitable for CFD work | hsieh | OpenFOAM | 9 | August 16, 2015 14:53 |
OpenFoam 1.7.1 in Ubuntu 10.04 won't start working | Leech | OpenFOAM Installation | 8 | August 10, 2014 20:42 |
OpenFOAM on non-English Ubuntu distribution | fabian_roesler | OpenFOAM | 3 | January 11, 2010 07:16 |
OpenFOAM 1.6 installation in Ubuntu 9.1 | jsm | OpenFOAM Installation | 4 | January 3, 2010 22:53 |