error: 'virtual Ship::~Ship()' is protected within...context
Posted: Mon Aug 22, 2016 1:58 pm
I'm trying to build 0.4.5+, the git master HEAD, on a current debian stretch (actually inside a docker container) . Dependencies and build environment I got from the debian repos (using "apt-get build-dep -y freeorion").
Build starts fine, but gets killed by multiple errors for destructors like the following.
Any ideas? Help appreciated!
Build starts fine, but gets killed by multiple errors for destructors like the following.
Code: Select all
[ 22%] Building CXX object CMakeFiles/freeorioncommon.dir/util/SerializeUniverse.cpp.o
In file included from /usr/include/boost/archive/detail/interface_iarchive.hpp:22:0,
from /usr/include/boost/archive/detail/common_iarchive.hpp:23,
from /usr/include/boost/archive/basic_binary_iarchive.hpp:30,
from /usr/include/boost/archive/binary_iarchive_impl.hpp:21,
from /usr/include/boost/archive/binary_iarchive.hpp:20,
from /freeorion_sources/util/Serialize.h:4,
from /freeorion_sources/util/SerializeUniverse.cpp:1:
/usr/include/boost/archive/detail/iserializer.hpp: In instantiation of 'static void boost::archive::detail::heap_allocation<T>::doesnt_have_new_operator::invoke_delete(T*) [with T = Ship]':
/usr/include/boost/archive/detail/iserializer.hpp:265:33: required from 'static void boost::archive::detail::heap_allocation<T>::invoke_delete(T*) [with T = Ship]'
/usr/include/boost/archive/detail/iserializer.hpp:273:26: required from 'boost::archive::detail::heap_allocation<T>::~heap_allocation() [with T = Ship]'
/usr/include/boost/archive/detail/iserializer.hpp:294:36: required from 'void* boost::archive::detail::pointer_iserializer<Archive, T>::heap_allocation() const [with Archive = boost::archive::binary_iarchive; T = Ship]'
/freeorion_sources/util/SerializeUniverse.cpp:351:133: required from here
/usr/include/boost/archive/detail/iserializer.hpp:246:17: error: 'virtual Ship::~Ship()' is protected within this context