Hi Mahmood,

Looking briefly at the code, it might simply be missing a ";" at the end of the BOOST_IS_ABSTRACT() line.

Honestly, the easiest thing to do would probably be to install Boost 1.33.1 and use that when compiling Flexus.

If you really want to use Boost 1.42.0, I'd recommend looking through the changelogs to see if you can find any specific changes. Or you can compare specific files (e.g., is_abstract.hpp) and see what's changed in that file between 1.33.1 and 1.42.0.



Jason



On 10-04-18 3:48 AM, Mahmood Naderan wrote:
Hi again,
I supposed that "make install" is done, so I move on to "make all". I am using Boost 1.42.0 which is the latest version but it seems that it is not fully compatible with Flexus 3.0. For example the #include <boost/serialization/is_abstract.hpp> is incorrect because that file is now moved so the correct syntax is #include <boost/type_traits/is_abstract.hpp>. I am now stuck at this error:

/home/mahmood/flexus-3.0.0/core/aux_/stats/base.hpp:141: error: expected constructor, destructor, or type conversion before 'namespace' /home/mahmood/boost_1_42_0/boost/archive/basic_binary_oarchive.hpp: In member function 'void boost::archive::basic_binary_oarchive<Archive>::save_override(const boost::archive::class_id_type&, int) [with Archive = boost::archive::binary_oarchive]': /home/mahmood/boost_1_42_0/boost/archive/binary_oarchive_impl.hpp:51: instantiated from 'void boost::archive::binary_oarchive_impl<Archive, Elem, Tr>::save_override(T&, int) [with T = const boost::archive::class_id_type, Archive = boost::archive::binary_oarchive, Elem = char, Tr = std::char_traits<char>]'

part of the code at that line is:
BOOST_IS_ABSTRACT(Flexus::Stat::aux_::StatValueArrayBase)


namespace boost { // line 141: error
namespace serialization {
  template<class Archive>
inline void serialize( Archive & ar, ::boost::intrusive_ptr<Flexus::Stat::aux_::StatValueBase> const & t, const unsigned int file_version ){
      split_free(ar, t, file_version);
  }
  template<class Archive>
inline void serialize( Archive & ar, ::boost::intrusive_ptr<Flexus::Stat::aux_::StatValueArrayBase> const & t, const unsigned int file_version ){
      split_free(ar, t, file_version);
  }
}
}

Any idea is appreciated...
*// Naderan *Mahmood;*



Reply via email to