Boost logo

Boost Users :

From: Lorenzo L (lodilory_at_[hidden])
Date: 2020-08-14 19:35:14


  I'm trying to compile a piece of software called Bagel (a quantum
chemistry program) written in C++ and which uses Boost.
I get a
compilation error, and as I don't know C++ and I've never used boost I'm
essentially lost. The author of the program says the problem I'm
experiences depends on my boost installation and not on the program
itself.
I installed boost 1.73.0 (Linux Mint 20, g++ 9.3.0) doing:

sudo
./bootstrap.sh --prefix=/usr/local
sudo ./b2 install

When compiling the
program I get the following
error:

/usr/local/include/boost/serialization/access.hpp:119:11: error:
'class std::unordered_set' has no member named 'serialize'
 119 |
t.serialize(ar, file_version);
 |
~~^~~~~~~~~
/usr/local/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]':
/usr/local/include/boost/serialization/serialization.hpp:69:22:
required from 'void boost::serialization::serialize(Archive&, T&,
unsigned int)
[with Archive = boost::archive::binary_oarchive; T =
std::unordered_set]'
/usr/local/include/boost/serialization/serialization.hpp:128:18:
required from 'void boost::serialization::serialize_adl(Archive&, T&,
unsigned int) [with Archive = boost::archive::binary_oarchive; T =
std::unordered_set]'
/usr/local/include/boost/archive/detail/oserializer.hpp:148:40:
required from 'void
boost::archive::detail::oserializer::save_object_data(boost::archive::detail::basic_oarchive&,
const void*) const [with Archive = boost::archive::binary_oarchive; T =
std::unordered_set]'
/usr/local/include/boost/archive/detail/oserializer.hpp:101:1:
required from 'class
boost::archive::detail::oserializer'
/usr/local/include/boost/archive/detail/oserializer.hpp:253:13:
required from 'static void
boost::archive::detail::save_non_pointer_type::save_standard::invoke(Archive&,
const T&) [with T = std::unordered_set; Archive =
boost::archive::binary_oarchive]'
/usr/local/include/boost/archive/detail/oserializer.hpp:308:22:
[ skipping 21 instantiation contexts, use -ftemplate-backtrace-limit=0
to disable ]
...

The following post
https://lists.boost.org/boost-users//2014/03/81583.php [1] report on a
similar error, but I couldn't understand what I should to solve it.
 Any
advice would be appreciated!

  

Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99€ al mese. http://tisca.li/smart30



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net