Compilation errors
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Compilation errors
- This topic has 2 replies, 2 voices, and was last updated 12 years, 3 months ago by sanbar1.
-
AuthorPosts
-
August 27, 2012 at 8:28 pm #1721sanbar1Member
Hi all,rnrnI am new LBM user. When I am trying to run examples, I face with following error. rnrn…rnvtkDataOutput.cpp:(.text+0x570): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’rnvtkDataOutput.cpp:(.text+0x57d): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(double)’rnvtkDataOutput.cpp:(.text+0x58a): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’rnvtkDataOutput.cpp:(.text+0x597): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(double)’rnvtkDataOutput.cpp:(.text+0x5a4): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’rnvtkDataOutput.cpp:(.text+0x5b1): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(double)’rn/work/sanbar1/olb-0.7r0/build/precompiled/lib/libolb.a(vtkDataOutput.o): In function `olb::VtkDataWriter3D::~VtkDataWriter3D()’:rnvtkDataOutput.cpp:(.text+0x5fa): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage’rnvtkDataOutput.cpp:(.text+0x619): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)’rnvtkDataOutput.cpp:(.text+0x62a): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)’rnvtkDataOutput.cpp:(.text+0x63d): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage’rnvtkDataOutput.cpp:(.text+0x65a): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)’rnvtkDataOutput.cpp:(.text+0x66b): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)’rn/work/sanbar1/olb-0.7r0/build/precompiled/lib/libolb.a(vtkDataOutput.o): In function `olb::VtkDataWriter3D::~VtkDataWriter3D()’:rnvtkDataOutput.cpp:(.text+0x6aa): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage’rnvtkDataOutput.cpp:(.text+0x6c9): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)’rnvtkDataOutput.cpp:(.text+0x6da): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)’rnvtkDataOutput.cpp:(.text+0x6ed): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage’rnvtkDataOutput.cpp:(.text+0x70a): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)’rnvtkDataOutput.cpp:(.text+0x71b): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)’rn/work/sanbar1/olb-0.7r0/build/precompiled/lib/libolb.a(vtkDataOutput.o): In function `olb::VtkDataWriter3D::VtkDataWriter3D(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’:rnvtkDataOutput.cpp:(.text+0x756): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’rnvtkDataOutput.cpp:(.text+0x76c): undefined reference to `operator new(unsigned long)’rnvtkDataOutput.cpp:(.text+0x77e): undefined reference to `std::ios_base::ios_base()’rnvtkDataOutput.cpp:(.text+0x785): undefined reference to `VTT for std::basic_ofstream<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0x797): undefined reference to `VTT for std::basic_ofstream<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0x7e7): undefined reference to `vtable for std::basic_ofstream<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0x7f2): undefined reference to `vtable for std::basic_ofstream<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0x7f7): undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::basic_filebuf()’rnvtkDataOutput.cpp:(.text+0x802): undefined reference to `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)’rnvtkDataOutput.cpp:(.text+0x812): undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode)’rnvtkDataOutput.cpp:(.text+0x828): undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)’rnvtkDataOutput.cpp:(.text+0x867): undefined reference to `std::cerr’rnvtkDataOutput.cpp:(.text+0x86c): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’rnvtkDataOutput.cpp:(.text+0x877): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’rnvtkDataOutput.cpp:(.text+0x884): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’rnvtkDataOutput.cpp:(.text+0x8a1): undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)’rnvtkDataOutput.cpp:(.text+0x8b5): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage’rnvtkDataOutput.cpp:(.text+0x8ca): undefined reference to `vtable for std::basic_filebuf<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0x8d2): undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::close()’rnvtkDataOutput.cpp:(.text+0x8dc): undefined reference to `std::__basic_file<char>::~__basic_file()’rnvtkDataOutput.cpp:(.text+0x8e9): undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0x8ee): undefined reference to `std::locale::~locale()’rnvtkDataOutput.cpp:(.text+0x8f9): undefined reference to `VTT for std::basic_ofstream<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0x90b): undefined reference to `vtable for std::basic_ios<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0x910): undefined reference to `std::ios_base::~ios_base()’rnvtkDataOutput.cpp:(.text+0x918): undefined reference to `operator delete(void*)’rnvtkDataOutput.cpp:(.text+0x928): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)’rnvtkDataOutput.cpp:(.text+0x93b): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)’rnvtkDataOutput.cpp:(.text+0x950): undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0x955): undefined reference to `std::locale::~locale()’rn/work/sanbar1/olb-0.7r0/build/precompiled/lib/libolb.a(vtkDataOutput.o): In function `olb::VtkDataWriter3D::VtkDataWriter3D(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’:rnvtkDataOutput.cpp:(.text+0x996): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’rnvtkDataOutput.cpp:(.text+0x9ac): undefined reference to `operator new(unsigned long)’rnvtkDataOutput.cpp:(.text+0x9be): undefined reference to `std::ios_base::ios_base()’rnvtkDataOutput.cpp:(.text+0x9c5): undefined reference to `VTT for std::basic_ofstream<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0x9d7): undefined reference to `VTT for std::basic_ofstream<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0xa27): undefined reference to `vtable for std::basic_ofstream<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0xa32): undefined reference to `vtable for std::basic_ofstream<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0xa37): undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::basic_filebuf()’rnvtkDataOutput.cpp:(.text+0xa42): undefined reference to `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)’rnvtkDataOutput.cpp:(.text+0xa52): undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode)’rnvtkDataOutput.cpp:(.text+0xa68): undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)’rnvtkDataOutput.cpp:(.text+0xaa7): undefined reference to `std::cerr’rnvtkDataOutput.cpp:(.text+0xaac): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’rnvtkDataOutput.cpp:(.text+0xab7): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’rnvtkDataOutput.cpp:(.text+0xac4): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’rnvtkDataOutput.cpp:(.text+0xae1): undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)’rnvtkDataOutput.cpp:(.text+0xaf5): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage’rnvtkDataOutput.cpp:(.text+0xb0a): undefined reference to `vtable for std::basic_filebuf<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0xb12): undefined reference to `std::basic_filebuf<char, std::char_traits<char> >::close()’rnvtkDataOutput.cpp:(.text+0xb1c): undefined reference to `std::__basic_file<char>::~__basic_file()’rnvtkDataOutput.cpp:(.text+0xb29): undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0xb2e): undefined reference to `std::locale::~locale()’rnvtkDataOutput.cpp:(.text+0xb39): undefined reference to `VTT for std::basic_ofstream<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0xb4b): undefined reference to `vtable for std::basic_ios<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0xb50): undefined reference to `std::ios_base::~ios_base()’rnvtkDataOutput.cpp:(.text+0xb58): undefined reference to `operator delete(void*)’rnvtkDataOutput.cpp:(.text+0xb68): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)’rnvtkDataOutput.cpp:(.text+0xb7b): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)’rnvtkDataOutput.cpp:(.text+0xb90): undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >’rnvtkDataOutput.cpp:(.text+0xb95): undefined reference to `std::locale::~locale()’rn/work/sanbar1/olb-0.7r0/build/precompiled/lib/libolb.a(vtkDataOutput.o): In function `__tcf_1′:rnvtkDataOutput.cpp:(.text+0x56): undefined reference to `std::ios_base::Init::~Init()’rn/work/sanbar1/olb-0.7r0/build/precompiled/lib/libolb.a(vtkDataOutput.o): In function `olb::VtkDataWriter3D::writeFooter()’:rnvtkDataOutput.cpp:(.text+0x2bd): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’rn/work/sanbar1/olb-0.7r0/build/precompiled/lib/libolb.a(vtkDataOutput.o): In function `olb::VtkDataWriter3D::endPiece()’:rnvtkDataOutput.cpp:(.text+0x2ed): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’rn/work/sanbar1/olb-0.7r0/build/precompiled/lib/libolb.a(vtkDataOutput.o): In function `olb::VtkDataWriter3D::startPiece(int, int, int, int, int, int)’:rnvtkDataOutput.cpp:(.text+0x405): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’rn/work/sanbar1/olb-0.7r0/build/precompiled/lib/libolb.a(vtkDataOutput.o): In function `olb::VtkDataWriter3D::writeHeader(int, int, int, int, int, int, double, double, double, double)’:rnvtkDataOutput.cpp:(.text+0x5cc): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’rn/work/sanbar1/olb-0.7r0/build/precompiled/lib/libolb.a(vtkDataOutput.o):(.eh_frame+0x13): undefined reference to `__gxx_personality_v0’rncollect2: ld returned 1 exit statusrnmake: *** [poiseuille] Error 1rnrnrnThe compiler I am using:rn gcc -vrnUsing built-in specs.rnTarget: x86_64-redhat-linuxrnConfigured with: ../configure –prefix=/usr –mandir=/usr/share/man –infodir=/usr/share/info –enable-shared –enable-threads=posix –enable-checking=release –with-system-zlib –enable-__cxa_atexit –disable-libunwind-exceptions –enable-libgcj-multifile –enable-languages=c,c++,objc,obj-c++,java,fortran,ada –enable-java-awt=gtk –disable-dssi –disable-plugin –with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre –with-cpu=generic –host=x86_64-redhat-linuxrnThread model: posixrngcc version 4.1.2 20080704 (Red Hat 4.1.2-50)rnrnThanks…
August 28, 2012 at 4:44 am #2076joMemberDear sanbar1,rnrnI faced the same problem butr with the new release 0.71 it was working.
August 28, 2012 at 10:23 pm #2079sanbar1MemberDear Jo,rnrnIt really works. Thank you very much.
-
AuthorPosts
- You must be logged in to reply to this topic.