|
|
不是,在我的系统的/use/lib64里是有libboost_regex.so等库文件的。按四楼给的链接的做法,在./configure这一步里写成:
- --with-boost=yes --with-boost-libdir=/usr/lib64
复制代码
那么./configure这一步就不会报错了。但下一步make还是会报错:
- libtool: compile: mpicxx -DHAVE_CONFIG_H -I. -I../../../src/smith -I../.. -I/usr/include -I../../.. -DNDEBUG -O3 -mavx -std=c++11 -MT tensor.lo -MD -MP -MF .deps/tensor.Tpo -c ../../../src/smith/tensor.cc -fPIC -DPIC -o .libs/tensor.o
- In file included from /usr/include/boost/serialization/split_member.hpp:23:0,
- from /usr/include/boost/serialization/nvp.hpp:33,
- from /usr/include/boost/serialization/array.hpp:19,
- from ../../../btas/serialization.h:6,
- from ../../../btas/varray/varray.h:6,
- from ../../../btas/range.h:19,
- from ../../../btas/defaults.h:15,
- from ../../../btas/tensor.h:11,
- from ../../../btas/generic/axpy_impl.h:8,
- from ../../../btas/btas.h:8,
- from ../../../src/util/math/btas_interface.h:38,
- from ../../../src/util/math/vectorb.h:30,
- from ../../../src/util/math/matrix_base.h:33,
- from ../../../src/util/math/matrix.h:32,
- from ../../../src/smith/tensor.h:34,
- from ../../../src/smith/tensor.cc:28:
- /usr/include/boost/serialization/access.hpp: In instantiation of ‘static void boost::serialization::access::serialize(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_iarchive; T = std::unordered_set<long unsigned int>]’:
- /usr/include/boost/serialization/serialization.hpp:69:69: required from ‘void boost::serialization::serialize(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_iarchive; T = std::unordered_set<long unsigned int>]’
- /usr/include/boost/serialization/serialization.hpp:128:27: required from ‘void boost::serialization::serialize_adl(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_iarchive; T = std::unordered_set<long unsigned int>]’
- /usr/include/boost/archive/detail/iserializer.hpp:192:5: required from ‘void boost::archive::detail::iserializer<Archive, T>::load_object_data(boost::archive::detail::basic_iarchive&, void*, unsigned int) const [with Archive = boost::archive::binary_iarchive; T = std::unordered_set<long unsigned int>]’
- /usr/include/boost/archive/detail/iserializer.hpp:120:1: required from ‘class boost::archive::detail::iserializer<boost::archive::binary_iarchive, std::unordered_set<long unsigned int> >’
- /usr/include/boost/archive/detail/iserializer.hpp:387:13: required from ‘static void boost::archive::detail::load_non_pointer_type<Archive>::load_standard::invoke(Archive&, const T&) [with T = std::unordered_set<long unsigned int>; Archive = boost::archive::binary_iarchive]’
- /usr/include/boost/archive/detail/iserializer.hpp:439:28: [ skipping 21 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
- /usr/include/boost/serialization/export.hpp:86:1: required from ‘struct boost::archive::detail::ptr_serialization_support<boost::archive::binary_iarchive, bagel::SMITH::Tensor_<double> >’
- /usr/include/boost/archive/detail/register_archive.hpp:25:8: required from ‘struct boost::archive::detail::_ptr_serialization_support<boost::archive::binary_iarchive, bagel::SMITH::Tensor_<double> >’
- /usr/include/boost/archive/binary_iarchive.hpp:96:1: required by substitution of ‘template<class Serializable> typename boost::archive::detail::_ptr_serialization_support<boost::archive::binary_iarchive, Serializable>::type boost::archive::detail::instantiate_ptr_serialization(Serializable*, boost::archive::binary_iarchive*, boost::archive::detail::adl_tag) [with Serializable = bagel::SMITH::Tensor_<double>]’
- /usr/include/boost/serialization/export.hpp:132:58: required from ‘void boost::archive::detail::extra_detail::guid_initializer<T>::export_guid(mpl_::false_) const [with T = bagel::SMITH::Tensor_<double>; mpl_::false_ = mpl_::bool_<false>]’
- /usr/include/boost/serialization/export.hpp:142:61: required from ‘const boost::archive::detail::extra_detail::guid_initializer<T>& boost::archive::detail::extra_detail::guid_initializer<T>::export_guid() const [with T = bagel::SMITH::Tensor_<double>]’
- ../../../src/smith/tensor.cc:167:1: required from here
- /usr/include/boost/serialization/access.hpp:118:9: 错误:‘class std::unordered_set<long unsigned int>’没有名为‘serialize’的成员
- t.serialize(ar, file_version);
- ^
- /usr/include/boost/serialization/access.hpp: In instantiation of ‘static void boost::serialization::access::serialize(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_oarchive; T = std::unordered_set<long unsigned int>]’:
- /usr/include/boost/serialization/serialization.hpp:69:69: required from ‘void boost::serialization::serialize(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_oarchive; T = std::unordered_set<long unsigned int>]’
- /usr/include/boost/serialization/serialization.hpp:128:27: required from ‘void boost::serialization::serialize_adl(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_oarchive; T = std::unordered_set<long unsigned int>]’
- /usr/include/boost/archive/detail/oserializer.hpp:152:5: required from ‘void boost::archive::detail::oserializer<Archive, T>::save_object_data(boost::archive::detail::basic_oarchive&, const void*) const [with Archive = boost::archive::binary_oarchive; T = std::unordered_set<long unsigned int>]’
- /usr/include/boost/archive/detail/oserializer.hpp:101:1: required from ‘class boost::archive::detail::oserializer<boost::archive::binary_oarchive, std::unordered_set<long unsigned int> >’
- /usr/include/boost/archive/detail/oserializer.hpp:253:13: required from ‘static void boost::archive::detail::save_non_pointer_type<Archive>::save_standard::invoke(Archive&, const T&) [with T = std::unordered_set<long unsigned int>; Archive = boost::archive::binary_oarchive]’
- /usr/include/boost/archive/detail/oserializer.hpp:308:28: [ skipping 21 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
- /usr/include/boost/serialization/export.hpp:86:1: required from ‘struct boost::archive::detail::ptr_serialization_support<boost::archive::binary_oarchive, bagel::SMITH::Tensor_<double> >’
- /usr/include/boost/archive/detail/register_archive.hpp:25:8: required from ‘struct boost::archive::detail::_ptr_serialization_support<boost::archive::binary_oarchive, bagel::SMITH::Tensor_<double> >’
- /usr/include/boost/archive/binary_oarchive.hpp:59:1: required by substitution of ‘template<class Serializable> typename boost::archive::detail::_ptr_serialization_support<boost::archive::binary_oarchive, Serializable>::type boost::archive::detail::instantiate_ptr_serialization(Serializable*, boost::archive::binary_oarchive*, boost::archive::detail::adl_tag) [with Serializable = bagel::SMITH::Tensor_<double>]’
- /usr/include/boost/serialization/export.hpp:132:58: required from ‘void boost::archive::detail::extra_detail::guid_initializer<T>::export_guid(mpl_::false_) const [with T = bagel::SMITH::Tensor_<double>; mpl_::false_ = mpl_::bool_<false>]’
- /usr/include/boost/serialization/export.hpp:142:61: required from ‘const boost::archive::detail::extra_detail::guid_initializer<T>& boost::archive::detail::extra_detail::guid_initializer<T>::export_guid() const [with T = bagel::SMITH::Tensor_<double>]’
- ../../../src/smith/tensor.cc:167:1: required from here
- /usr/include/boost/serialization/access.hpp:118:9: 错误:‘class std::unordered_set<long unsigned int>’没有名为‘serialize’的成员
- make[3]: *** [tensor.lo] 错误 1
- make[3]: 离开目录“/home/public/wbh/soft/bagel/obj/src/smith”
- make[2]: *** [all-recursive] 错误 1
- make[2]: 离开目录“/home/public/wbh/soft/bagel/obj/src”
- make[1]: *** [all-recursive] 错误 1
- make[1]: 离开目录“/home/public/wbh/soft/bagel/obj”
- make: *** [all] 错误 2
复制代码
所以还是想问要怎么处理呢? |
|