CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Compile problem (https://www.cfd-online.com/Forums/openfoam-solving/58562-compile-problem.html)

ivanyao September 12, 2008 00:22

hi,all when i try to compile
 
hi,all
when i try to compile the "icoFoam",it show many errors,like that:
std::char_traits<wchar_t>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/istream:762: error: no type named 'off_type' in 'struct std::char_traits<wchar_t>'
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/stringI.H: In member function 'size_t Foam::string::hash::operator()(const Foam::string&, size_t) const':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/stringI.H:169: error: '::abs' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/wordI.H: In member function 'void Foam::word::stripInvalid()':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/wordI.H:46: error: 'abort' is not a member of 'std'
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/wordI.H: In function 'Foam::word Foam::operator&(const Foam::word&, const Foam::word&)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/wordI.H:146: error: 'toupper' was not declared in this scope
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/label.H: In function 'Foam::label Foam::mag(Foam::label)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/label.H:170: error: '::abs' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath: At global scope:
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:100: error: '::acos' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:117: error: '::asin' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:132: error: '::atan' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:147: error: '::atan2' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:163: error: '::ceil' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:178: error: '::cos' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:193: error: '::cosh' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:208: error: '::exp' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:223: error: '::fabs' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:238: error: '::floor' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:253: error: '::fmod' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:263: error: '::frexp' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:278: error: '::ldexp' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:293: error: '::log' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:308: error: '::log10' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:323: error: '::modf' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:342: error: '::pow' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:364: error: '::sin' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:379: error: '::sinh' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:394: error: '::sqrt' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:409: error: '::tan' has not been declared
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/cmath:424: error: '::tanh' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(double, double)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:82: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(double, float)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:83: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(float, double)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:84: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(float, float)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:85: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(double, int)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:86: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(int, double)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:87: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(double, long int)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:88: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(long int, double)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:89: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(float, int)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:90: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(int, float)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:91: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(float, long int)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:92: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(long int, float)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleFloat.H:93: error: '::pow' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/floatScalar.H: In function 'Foam::floatScalar Foam::mag(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/floatScalar.H:67: error: '::fabsf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::sqrt(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:172: error: '::sqrtf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::cbrt(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:173: error: '::cbrtf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::exp(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:174: error: '::expf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::log(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:175: error: '::logf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::log10(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:176: error: '::log10f' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::sin(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:177: error: '::sinf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::cos(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:178: error: '::cosf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::tan(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:179: error: '::tanf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::asin(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:180: error: '::asinf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::acos(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:181: error: '::acosf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::atan(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:182: error: '::atanf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::sinh(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:183: error: '::sinhf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::cosh(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:184: error: '::coshf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::tanh(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:185: error: '::tanhf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::asinh(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:186: error: '::asinhf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::acosh(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:187: error: '::acoshf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::atanh(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:188: error: '::atanhf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::erf(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:192: error: '::erff' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::erfc(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:193: error: '::erfcf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::lgamma(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:194: error: '::lgammaf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::j0(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:196: error: '::j0f' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::j1(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:197: error: '::j1f' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::y0(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:199: error: '::y0f' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::y1(Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:200: error: '::y1f' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/floatScalar.H: In function 'Foam::floatScalar Foam::hypot(Foam::floatScalar, Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/floatScalar.H:80: error: '::hypotf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/floatScalar.H: In function 'Foam::floatScalar Foam::atan2(Foam::floatScalar, Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/floatScalar.H:85: error: '::atan2f' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/floatScalar.H: In function 'Foam::floatScalar Foam::jn(int, Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/floatScalar.H:90: error: '::jnf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/floatScalar.H: In function 'Foam::floatScalar Foam::yn(int, Foam::floatScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/floatScalar.H:95: error: '::ynf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleScalar.H: In function 'Foam::doubleScalar Foam::mag(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleScalar.H:67: error: '::fabs' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::sqrt(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:172: error: '::sqrt' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::cbrt(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:173: error: '::cbrt' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::exp(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:174: error: '::exp' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::log(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:175: error: '::log' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::log10(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:176: error: '::log10' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::sin(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:177: error: '::sin' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::cos(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:178: error: '::cos' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::tan(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:179: error: '::tan' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::asin(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:180: error: '::asin' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::acos(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:181: error: '::acos' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::atan(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:182: error: '::atan' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::sinh(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:183: error: '::sinh' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::cosh(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:184: error: '::cosh' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::tanh(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:185: error: '::tanh' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::asinh(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:186: error: '::asinh' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::acosh(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:187: error: '::acosh' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::atanh(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:188: error: '::atanh' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::erf(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:192: error: '::erf' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::erfc(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:193: error: '::erfc' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::lgamma(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:194: error: '::lgamma' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::j0(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:196: error: '::j0' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::j1(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:197: error: '::j1' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::y0(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:199: error: '::y0' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::y1(Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/Scalar.H:200: error: '::y1' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleScalar.H: In function 'Foam::doubleScalar Foam::hypot(Foam::doubleScalar, Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleScalar.H:80: error: '::hypot' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleScalar.H: In function 'Foam::doubleScalar Foam::atan2(Foam::doubleScalar, Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleScalar.H:85: error: '::atan2' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleScalar.H: In function 'Foam::doubleScalar Foam::jn(int, Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleScalar.H:90: error: '::jn' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleScalar.H: In function 'Foam::doubleScalar Foam::yn(int, Foam::doubleScalar)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/doubleScalar.H:95: error: '::yn' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/fileNameI.H: In member function 'void Foam::fileName::stripInvalid()':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/fileNameI.H:39: error: 'abort' is not a member of 'std'
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/OSspecific.H: At global scope:
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/OSspecific.H:50: error: 'pid_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/OSspecific.H:53: error: 'pid_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/OSspecific.H:56: error: 'pid_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/OSspecific.H:88: error: 'mode_t' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/OSspecific.H:91: error: ISO C++ forbids declaration of 'mode_t' with no type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/OSspecific.H:94: error: 'mode_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/OSspecific.H:109: error: 'off_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/OSspecific.H:112: error: 'time_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/regIOobject.H:71: error: 'time_t' does not name a type
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream: In instantiation of 'std::basic_stringbuf<char,>, std::allocator<char> >':
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/bits/sstream.tcc:256: instantiated from here
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:73: error: no type named 'off_type' in 'struct std::char_traits<char>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/bits/sstream.tcc:147: error: no type named 'off_type' in 'struct std::char_traits<char>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream: In instantiation of 'std::basic_istringstream<char,>, std::allocator<char> >':
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/bits/sstream.tcc:257: instantiated from here
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:272: error: no type named 'off_type' in 'struct std::char_traits<char>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream: In instantiation of 'std::basic_ostringstream<char,>, std::allocator<char> >':
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/bits/sstream.tcc:258: instantiated from here
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:385: error: no type named 'off_type' in 'struct std::char_traits<char>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream: In instantiation of 'std::basic_stringstream<char,>, std::allocator<char> >':
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/bits/sstream.tcc:259: instantiated from here
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:498: error: no type named 'off_type' in 'struct std::char_traits<char>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream: In instantiation of 'std::basic_stringbuf<wchar_t,>, std::allocator<wchar_t> >':
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/bits/sstream.tcc:262: instantiated from here
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:71: error: no type named 'int_type' in 'struct std::char_traits<wchar_t>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:73: error: no type named 'off_type' in 'struct std::char_traits<wchar_t>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/bits/sstream.tcc:147: error: no type named 'off_type' in 'struct std::char_traits<wchar_t>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream: In instantiation of 'std::basic_istringstream<wchar_t,>, std::allocator<wchar_t> >':
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/bits/sstream.tcc:263: instantiated from here
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:270: error: no type named 'int_type' in 'struct std::char_traits<wchar_t>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:272: error: no type named 'off_type' in 'struct std::char_traits<wchar_t>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream: In instantiation of 'std::basic_ostringstream<wchar_t,>, std::allocator<wchar_t> >':
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/bits/sstream.tcc:264: instantiated from here
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:383: error: no type named 'int_type' in 'struct std::char_traits<wchar_t>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:385: error: no type named 'off_type' in 'struct std::char_traits<wchar_t>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream: In instantiation of 'std::basic_stringstream<wchar_t,>, std::allocator<wchar_t> >':
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/bits/sstream.tcc:265: instantiated from here
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:496: error: no type named 'int_type' in 'struct std::char_traits<wchar_t>'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/sstream:498: error: no type named 'off_type' in 'struct std::char_traits<wchar_t>'
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/clock.H:56: error: 'time_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/clock.H:59: error: 'time_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/clock.H:62: error: 'time_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/clock.H:79: error: 'time_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/clock.H:91: error: 'time_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/clock.H:94: error: 'time_t' does not name a type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/cpuTime.H:57: error: field 'startTime_' has incomplete type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/cpuTime.H:58: error: field 'lastTime_' has incomplete type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/cpuTime.H:59: error: field 'newTime_' has incomplete type
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/VectorSpaceI.H: In function 'Foam::scalar Foam::mag(const Foam::VectorSpace<form,>&)':
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/VectorSpaceI.H:323: error: '::sqrt' has not been declared
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/mathematicalConstants.H: At global scope:
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/mathematicalConstants.H: 47: error: 'M_E' was not declared in this scope
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/mathematicalConstants.H: 48: error: 'M_PI' was not declared in this scope
icoFoam.C: In function 'int main(int, char**)':
icoFoam.C:104: error: 'class Foam::Time' has no member named 'elapsedClockTime'
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/streambuf: In member function 'typename _Traits::pos_type std::basic_streambuf<_chart,>::seekpos(typename _Traits::pos_type, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]':
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/streambuf:252: instantiated from 'typename _Traits::pos_type std::basic_streambuf<_chart,>::pubseekpos(typename _Traits::pos_type, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]'
/home/ivan/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/OStringStream.H:104: instantiated from here
/home/ivan/OpenFOAM/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../.. /../../include/c++/4.1.2/streambuf:599: error: no type named 'off_type' in 'struct std::char_traits<char>'
make: *** [Make/linuxGcc4DPOpt/icoFoam.o] error 1




I think it would be the installation make the mistake,but when i type "foamInstalltionTest",everything is ok,i DO NOT why.by the way,I am using OF 1.4 and gcc4.1.2.

mm.abdollahzadeh October 12, 2012 10:31

Dear weihong

As I see you were trying to use
floor and fmod function .
is it possible to use them in openfoam?

Best
Mahdi


All times are GMT -4. The time now is 23:03.