Skip to content

Re: how to get started with openlb

#2027
jepson
Member

Hello Thomas,rnrnThanks a lot ! I have tried to replace the CVMLCPP, but still cannot solve the problem.rnrnbeforernrnserializerIO.cpp:(.text._ZN3olb15serializer2ostrIdEEvRKNS_14DataSerializerIT_EEPSob[void olb::serializer2ostr<double>(olb::DataSerializer<double> const&, std::basic_ostream<char, std::char_traits<char> >*, bool)]+0xda): undefined reference to `olb::Base64Encoder<unsigned long>::encode(unsigned long const*, unsigned long)’rn../../build/precompiled/lib/libolb.a(serializerIO.o): In function `void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)’:rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0x21): undefined reference to `olb::Base64Decoder<unsigned int>::Base64Decoder(std::basic_istream<char, std::char_traits<char> >&, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0x33): undefined reference to `olb::Base64Decoder<unsigned int>::decode(unsigned int*, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0x63): undefined reference to `olb::Base64Decoder<double>::Base64Decoder(std::basic_istream<char, std::char_traits<char> >&, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0x93): undefined reference to `olb::Base64Decoder<double>::decode(double*, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0xc6): undefined reference to `olb::Base64Decoder<unsigned long>::Base64Decoder(std::basic_istream<char, std::char_traits<char> >&, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0xda): undefined reference to `olb::Base64Decoder<unsigned long>::decode(unsigned long*, unsigned long)’rncollect2: ld returned 1 exit statusrnmake: *** [bstep2d] Error 1rnrnrnafter rnrnboundaryCondition2D.cpp:(.text._ZN3olb31BoundaryConditionInstantiator2DIdNS_11descriptors14D2Q9DescriptorENS_28RegularizedBoundaryManager2DIdS2_NS_11BGKdynamicsIdS2_EEEEE19addVelocityBoundaryEPNS_25BlockGeometryStatistics2DEiiiidi[olb::BoundaryConditionInstantiator2D<double, olb::descriptors::D2Q9Descriptor, olb::RegularizedBoundaryManager2D<double, olb::descriptors::D2Q9Descriptor, olb::BGKdynamics<double, olb::descriptors::D2Q9Descriptor> > >::addVelocityBoundary(olb::BlockGeometryStatistics2D*, int, int, int, int, double, int)]+0xb8): undefined reference to `olb::BlockGeometryStatistics2D::getBlockGeometry()’rnboundaryCondition2D.cpp:(.text._ZN3olb31BoundaryConditionInstantiator2DIdNS_11descriptors14D2Q9DescriptorENS_28RegularizedBoundaryManager2DIdS2_NS_11BGKdynamicsIdS2_EEEEE19addVelocityBoundaryEPNS_25BlockGeometryStatistics2DEiiiidi[olb::BoundaryConditionInstantiator2D<double, olb::descriptors::D2Q9Descriptor, olb::RegularizedBoundaryManager2D<double, olb::descriptors::D2Q9Descriptor, olb::BGKdynamics<double, olb::descriptors::D2Q9Descriptor> > >::addVelocityBoundary(olb::BlockGeometryStatistics2D*, int, int, int, int, double, int)]+0xc5): undefined reference to `olb::BlockGeometry2D::getMaterial(int, int)’rnboundaryCondition2D.cpp:(.text._ZN3olb31BoundaryConditionInstantiator2DIdNS_11descriptors14D2Q9DescriptorENS_28RegularizedBoundaryManager2DIdS2_NS_11BGKdynamicsIdS2_EEEEE19addVelocityBoundaryEPNS_25BlockGeometryStatistics2DEiiiidi[olb::BoundaryConditionInstantiator2D<double, olb::descriptors::D2Q9Descriptor, olb::RegularizedBoundaryManager2D<double, olb::descriptors::D2Q9Descriptor, olb::BGKdynamics<double, olb::descriptors::D2Q9Descriptor> > >::addVelocityBoundary(olb::BlockGeometryStatistics2D*, int, int, int, int, double, int)]+0xdf): undefined reference to `olb::BlockGeometryStatistics2D::getType(int, int)’rn../../build/precompiled/lib/libolb.a(serializerIO.o): In function `void olb::serializer2ostr<double>(olb::DataSerializer<double> const&, std::basic_ostream<char, std::char_traits<char> >*, bool)’:rnserializerIO.cpp:(.text._ZN3olb15serializer2ostrIdEEvRKNS_14DataSerializerIT_EEPSob[void olb::serializer2ostr<double>(olb::DataSerializer<double> const&, std::basic_ostream<char, std::char_traits<char> >*, bool)]+0x3d): undefined reference to `olb::Base64Encoder<unsigned int>::Base64Encoder(std::basic_ostream<char, std::char_traits<char> >&, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb15serializer2ostrIdEEvRKNS_14DataSerializerIT_EEPSob[void olb::serializer2ostr<double>(olb::DataSerializer<double> const&, std::basic_ostream<char, std::char_traits<char> >*, bool)]+0x58): undefined reference to `olb::Base64Encoder<unsigned int>::encode(unsigned int const*, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb15serializer2ostrIdEEvRKNS_14DataSerializerIT_EEPSob[void olb::serializer2ostr<double>(olb::DataSerializer<double> const&, std::basic_ostream<char, std::char_traits<char> >*, bool)]+0x73): undefined reference to `olb::Base64Encoder<double>::Base64Encoder(std::basic_ostream<char, std::char_traits<char> >&, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb15serializer2ostrIdEEvRKNS_14DataSerializerIT_EEPSob[void olb::serializer2ostr<double>(olb::DataSerializer<double> const&, std::basic_ostream<char, std::char_traits<char> >*, bool)]+0x9a): undefined reference to `olb::Base64Encoder<double>::encode(double const*, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb15serializer2ostrIdEEvRKNS_14DataSerializerIT_EEPSob[void olb::serializer2ostr<double>(olb::DataSerializer<double> const&, std::basic_ostream<char, std::char_traits<char> >*, bool)]+0xc6): undefined reference to `olb::Base64Encoder<unsigned long>::Base64Encoder(std::basic_ostream<char, std::char_traits<char> >&, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb15serializer2ostrIdEEvRKNS_14DataSerializerIT_EEPSob[void olb::serializer2ostr<double>(olb::DataSerializer<double> const&, std::basic_ostream<char, std::char_traits<char> >*, bool)]+0xda): undefined reference to `olb::Base64Encoder<unsigned long>::encode(unsigned long const*, unsigned long)’rn../../build/precompiled/lib/libolb.a(serializerIO.o): In function `void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)’:rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0x21): undefined reference to `olb::Base64Decoder<unsigned int>::Base64Decoder(std::basic_istream<char, std::char_traits<char> >&, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0x33): undefined reference to `olb::Base64Decoder<unsigned int>::decode(unsigned int*, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0x63): undefined reference to `olb::Base64Decoder<double>::Base64Decoder(std::basic_istream<char, std::char_traits<char> >&, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0x93): undefined reference to `olb::Base64Decoder<double>::decode(double*, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0xc6): undefined reference to `olb::Base64Decoder<unsigned long>::Base64Decoder(std::basic_istream<char, std::char_traits<char> >&, unsigned long)’rnserializerIO.cpp:(.text._ZN3olb17istr2unSerializerIdEEvRNS_16DataUnSerializerIT_EEPSib[void olb::istr2unSerializer<double>(olb::DataUnSerializer<double>&, std::basic_istream<char, std::char_traits<char> >*, bool)]+0xda): undefined reference to `olb::Base64Decoder<unsigned long>::decode(unsigned long*, unsigned long)’rncollect2: ld returned 1 exit statusrnmake: *** [bstep2d] Error 1rnrnthe same problem appeared.rnI haven’t use an older version of gcc