CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   mesquiteMotionSolver compilation error (1.6-extend) (http://www.cfd-online.com/Forums/openfoam-installation/88343-mesquitemotionsolver-compilation-error-1-6-extend.html)

jans May 14, 2011 12:57

mesquiteMotionSolver compilation error (1.6-extend)
 
Hi,
I am getting errors in compiling OpenFoam 1.6-ext using gcc 4.5.2. Some seem to be related to gcc (I dont know if these matter) but a couple of errors are related to MsqIRel.hpp. I have copied some hpp files from mesquite src (v2.1.4 as I didn't find v2.1.2 src code) to Thirdparty mesquite include dir foll the advice in this thread:
http://www.cfd-online.com/Forums/openfoam-installation/82456-error-compiling-openfoam-1-6-ext.html

The errors are listed below. Please advice:

wmake libso mesquiteMotionSolver
...

/usr/local/packages/gcc/gcc-4.5.2/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:52:23: error: ‚uselocale‚ was not declared in this scope

/usr/local/packages/gcc/gcc-4.5.2/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:52:45: error: invalid type in declaration before ‚;‚ token
/usr/local/packages/gcc/gcc-4.5.2/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:72:53: error: ‚__gnu_cxx::__uselocale‚ cannot be used as a function
/usr/local/packages/gcc/gcc-4.5.2/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:97:33: error: ‚__gnu_cxx::__uselocale‚ cannot be used as a function
...
/usr/local/packages/OpenFOAM/1.6-ext/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64GccDPOpt/include/MsqIRel.hpp:51:12: error: ‚iRel_PairHandle‚ has not been declared
/usr/local/packages/OpenFOAM/1.6-ext/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64GccDPOpt/include/MsqIRel.hpp:96:3: error: ‚iRel_PairHandle‚ does not name a type
...

/usr/include/bits/stdio.h:118:52: error: ‚__getdelim‚ was not declared in this scope


All times are GMT -4. The time now is 06:53.