CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   How to handle the gcc412 (http://www.cfd-online.com/Forums/openfoam-bugs/62422-how-handle-gcc412.html)

ivanyao September 11, 2008 00:32

hi, I am using OF1.4,it is ru
 
hi,
I am using OF1.4,it is run OK. But it can not compile applications, such as icoFoam.I domnload five files,they are OpenFOAM-1.4.General.GZ,OpenFOAM-1.4linuxGcc4DPOpt.gz,gcc-4.1.2.linux.tgz,j2sdk1 .4.2_05.linux.tgz,and paraview-2.4.4.linux.tgz.it is pass the foamInstallationTest. did I miss something?how can i do?would someone tell me the reason? it appear the error like that:
/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/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/fvMeshGeometry.o] error 1


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