Compiling an application with OpenFOAM-1.6-ext ubuntu binaries
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 Thanks in advance |
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" |
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 |
Solved
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 |
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 |
All times are GMT -4. The time now is 00:27. |