Compilation errors
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Compilation errors
- This topic has 2 replies, 3 voices, and was last updated 12 years ago by mathias.
-
AuthorPosts
-
August 9, 2012 at 5:40 am #1717dongliMember
Hi all,rnrnI am trying the tutorial (lesson 1) in the user guide, and facing the following compilation errors:rnrn
Code:rnCreate dependencies for lesson1.cpprnCompile lesson1.cpprng++ -O3 -Wall -I../olb-0.7r1/src -I../olb-0.7r1/src/external -I../olb-0.7r1/src/external/cvmlcpp -I../olb-0.7r1/src/external/boost -I../olb-0.7r1/src/external/kaffpa -c lesson1.cpp -o /Users/dongli/Works/LBM/tutorial/lesson1.ornIn file included from /usr/include/machine/_types.h:32,rn from /usr/include/sys/_types.h:33,rn from /usr/include/_types.h:27,rn from /usr/include/_locale.h:41,rn from /usr/include/locale.h:40,rn from /usr/include/c++/4.2.1/clocale:51,rn from /usr/include/c++/4.2.1/bits/c++locale.h:47,rn from /usr/include/c++/4.2.1/iosfwd:45,rn from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,rn from /usr/include/c++/4.2.1/bits/char_traits.h:46,rn from /usr/include/c++/4.2.1/string:47,rn from ../olb-0.7r1/src/complexGrids/mpiManager/mpiManager.h:32,rn from ../olb-0.7r1/src/olb2D.h:1,rn from lesson1.cpp:1:rn/usr/include/i386/_types.h:46: error: conflicting declaration ‘typedef long long int __int64_t’rn../olb-0.7r1/src/external/boost/bits/types.h:44: error: ‘__int64_t’ has a previous declaration as ‘typedef long int __int64_t’rn/usr/include/i386/_types.h:47: error: conflicting declaration ‘typedef long long unsigned int __uint64_t’rn../olb-0.7r1/src/external/boost/bits/types.h:45: error: ‘__uint64_t’ has a previous declaration as ‘typedef long unsigned int __uint64_t’rnIn file included from ../olb-0.7r1/src/external/boost/_G_config.h:20,rn from ../olb-0.7r1/src/external/boost/libio.h:32,rn from ../olb-0.7r1/src/external/boost/stdio.h:75,rn from /usr/include/c++/4.2.1/cstdio:53,rn from /usr/include/c++/4.2.1/bits/c++locale.h:49,rn from /usr/include/c++/4.2.1/iosfwd:45,rn from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,rn from /usr/include/c++/4.2.1/bits/char_traits.h:46,rn from /usr/include/c++/4.2.1/string:47,rn from ../olb-0.7r1/src/complexGrids/mpiManager/mpiManager.h:32,rn from ../olb-0.7r1/src/olb2D.h:1,rn from lesson1.cpp:1:rn../olb-0.7r1/src/external/boost/wchar.h:95: error: conflicting declaration ‘typedef struct __mbstate_t __mbstate_t’rn/usr/include/i386/_types.h:79: error: ‘__mbstate_t’ has a previous declaration as ‘typedef union __mbstate_t __mbstate_t’rnIn file included from /usr/include/c++/4.2.1/cstdio:53,rn from /usr/include/c++/4.2.1/bits/c++locale.h:49,rn from /usr/include/c++/4.2.1/iosfwd:45,rn from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,rn from /usr/include/c++/4.2.1/bits/char_traits.h:46,rn from /usr/include/c++/4.2.1/string:47,rn from ../olb-0.7r1/src/complexGrids/mpiManager/mpiManager.h:32,rn from ../olb-0.7r1/src/olb2D.h:1,rn from lesson1.cpp:1:rn../olb-0.7r1/src/external/boost/stdio.h:430: error: expected initializer before ‘throw’rn../olb-0.7r1/src/external/boost/stdio.h:488: error: expected initializer before ‘throw’rnIn file included from /usr/include/c++/4.2.1/bits/gthr.h:114,rn from /usr/include/c++/4.2.1/bits/c++io.h:43,rn from /usr/include/c++/4.2.1/iosfwd:46,rn from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,rn from /usr/include/c++/4.2.1/bits/char_traits.h:46,rn from /usr/include/c++/4.2.1/string:47,rn from ../olb-0.7r1/src/complexGrids/mpiManager/mpiManager.h:32,rn from ../olb-0.7r1/src/olb2D.h:1,rn from lesson1.cpp:1:rn/usr/include/c++/4.2.1/bits/gthr-default.h: In function ‘int __gthread_recursive_mutex_init_function(__gthread_recursive_mutex_t*)’:rn/usr/include/c++/4.2.1/bits/gthr-default.h:642: error: ‘PTHREAD_MUTEX_RECURSIVE’ was not declared in this scopern/usr/include/c++/4.2.1/bits/gthr-default.h:642: error: ‘pthread_mutexattr_settype’ was not declared in this scopernIn file included from /usr/include/c++/4.2.1/cwchar:55,rn from /usr/include/c++/4.2.1/bits/postypes.h:46,rn from /usr/include/c++/4.2.1/iosfwd:49,rn from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,rn from /usr/include/c++/4.2.1/bits/char_traits.h:46,rn from /usr/include/c++/4.2.1/string:47,rn from ../olb-0.7r1/src/complexGrids/mpiManager/mpiManager.h:32,rn from ../olb-0.7r1/src/olb2D.h:1,rn from lesson1.cpp:1:rn../olb-0.7r1/src/external/boost/wchar.h: At global scope:rn../olb-0.7r1/src/external/boost/wchar.h:718: error: expected initializer before ‘throw’rnIn file included from /usr/include/c++/4.2.1/bits/postypes.h:46,rn from /usr/include/c++/4.2.1/iosfwd:49,rn from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,rn from /usr/include/c++/4.2.1/bits/char_traits.h:46,rn from /usr/include/c++/4.2.1/string:47,rn from ../olb-0.7r1/src/complexGrids/mpiManager/mpiManager.h:32,rn from ../olb-0.7r1/src/olb2D.h:1,rn from lesson1.cpp:1:rn/usr/include/c++/4.2.1/cwchar:153: error: ‘::fwide’ has not been declaredrn/usr/include/c++/4.2.1/cwchar:154: error: ‘::fwprintf’ has not been declaredrn/usr/include/c++/4.2.1/cwchar:155: error: ‘::fwscanf’ has not been declaredrn/usr/include/c++/4.2.1/cwchar:164: error: ‘::swprintf’ has not been declaredrn/usr/include/c++/4.2.1/cwchar:165: error: ‘::swscanf’ has not been declaredrn/usr/include/c++/4.2.1/cwchar:167: error: ‘::vfwprintf’ has not been declaredrn/usr/include/c++/4.2.1/cwchar:171: error: ‘::vswprintf’ has not been declaredrn/usr/include/c++/4.2.1/cwchar:175: error: ‘::vwprintf’ has not been declaredrn/usr/include/c++/4.2.1/cwchar:205: error: ‘::wprintf’ has not been declaredrn/usr/include/c++/4.2.1/cwchar:206: error: ‘::wscanf’ has not been declaredrnIn file included from /usr/include/c++/4.2.1/bits/locale_facets.h:47,rn from /usr/include/c++/4.2.1/bits/basic_ios.h:44,rn from /usr/include/c++/4.2.1/ios:50,rn from /usr/include/c++/4.2.1/ostream:45,rn from /usr/include/c++/4.2.1/iostream:45,rn from ../olb-0.7r1/src/io/ostreamManager.h:28,rn from ../olb-0.7r1/src/complexGrids/mpiManager/mpiManager.h:33,rn from ../olb-0.7r1/src/olb2D.h:1,rn from lesson1.cpp:1:rn/usr/include/c++/4.2.1/bits/ctype_base.h:62: error: ‘_U’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:63: error: ‘_L’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:64: error: ‘_A’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:65: error: ‘_D’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:66: error: ‘_X’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:67: error: ‘_S’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:68: error: ‘_R’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:69: error: ‘_A’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:69: error: ‘_D’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:69: error: ‘_P’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:70: error: ‘_C’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:71: error: ‘_P’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:72: error: ‘_A’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_base.h:72: error: ‘_D’ was not declared in this scopernIn file included from /usr/include/c++/4.2.1/bits/locale_facets.h:1536,rn from /usr/include/c++/4.2.1/bits/basic_ios.h:44,rn from /usr/include/c++/4.2.1/ios:50,rn from /usr/include/c++/4.2.1/ostream:45,rn from /usr/include/c++/4.2.1/iostream:45,rn from ../olb-0.7r1/src/io/ostreamManager.h:28,rn from ../olb-0.7r1/src/complexGrids/mpiManager/mpiManager.h:33,rn from ../olb-0.7r1/src/olb2D.h:1,rn from lesson1.cpp:1:rn/usr/include/c++/4.2.1/bits/ctype_inline.h: In member function ‘bool std::ctype<char>::is(long unsigned int, char) const’:rn/usr/include/c++/4.2.1/bits/ctype_inline.h:54: error: ‘__istype’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_inline.h: In member function ‘virtual bool std::ctype<wchar_t>::do_is(long unsigned int, wchar_t) const’:rn/usr/include/c++/4.2.1/bits/ctype_inline.h:129: error: ‘__istype’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_inline.h: In member function ‘virtual const wchar_t* std::ctype<wchar_t>::do_is(const wchar_t*, const wchar_t*, long unsigned int*) const’:rn/usr/include/c++/4.2.1/bits/ctype_inline.h:138: error: ‘__maskrune’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_inline.h: In member function ‘virtual const wchar_t* std::ctype<wchar_t>::do_scan_is(long unsigned int, const wchar_t*, const wchar_t*) const’:rn/usr/include/c++/4.2.1/bits/ctype_inline.h:146: error: ‘__istype’ was not declared in this scopern/usr/include/c++/4.2.1/bits/ctype_inline.h: In member function ‘virtual const wchar_t* std::ctype<wchar_t>::do_scan_not(long unsigned int, const wchar_t*, const wchar_t*) const’:rn/usr/include/c++/4.2.1/bits/ctype_inline.h:155: error: ‘__istype’ was not declared in this scopernmake: *** [/Users/dongli/Works/LBM/tutorial/lesson1.o] Error 1rnrnrnany idea? Thanks in advance!rnrndongli
August 9, 2012 at 6:35 am #2064sammyakMemberhello everyone,rn i too had the error like this when i was trying to compile “”openlb”” in Windows. here i am giving the massage,rn””../olb-0.7r1/src/external/boost/wchar.h:718: error: expected initializer before ‘throw’””rnthis is the same as that ‘dongli’ got.rnplease can someone guide me to remove this error.rnrnregards,
August 16, 2012 at 6:35 am #2066mathiasKeymasterDear both,rnrn Unfortunately I have no experience compiling OpenLB on a Windows system. Maybe there is a problem with included opose to “”boost”” files. You can try and remove the line “”src/external/boost “” in the file “”Makefile.inc””.rnrnMathias
-
AuthorPosts
- You must be logged in to reply to this topic.