CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

How to handle the gcc412

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2008, 23:32
Default hi, I am using OF1.4,it is ru
  #1
Senior Member
 
weihong yao
Join Date: Mar 2009
Posts: 117
Rep Power: 17
ivanyao is on a distinguished road
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
ivanyao is offline   Reply With Quote

Old   March 28, 2015, 22:35
Default
  #2
Member
 
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 11
cfdopenfoam is on a distinguished road
Hi, weihong.

i think i have got the same errors with you.

may i konw how you solve the problem?
cfdopenfoam is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to handle it ivanyao OpenFOAM Pre-Processing 6 August 24, 2008 21:27
Is UDF the only way to handle particle melting? marq FLUENT 3 February 23, 2008 01:48
Can CFX handle local hex refinement? JollyP CFX 2 October 31, 2006 09:00
Libstdcso6 cannot handle TLS data barryw OpenFOAM Installation 2 September 7, 2006 02:02
Can ALE handle air bubble breakups? Pei-Ying Hsieh Main CFD Forum 1 May 29, 2003 10:54


All times are GMT -4. The time now is 08:39.