[mlpack] build failed with BOOST_PFTO

Shangtong Zhang zhangshangtong.cpp at foxmail.com
Fri Sep 25 07:10:28 EDT 2015


Hi,

I install boost 1.59 then build failed.

/Users/HurricaneTong/GitHub/mlpack/src/mlpack/../mlpack/core/data/serialization_shim.hpp:340:50: warning: unused
      parameter 'version' [-Wunused-parameter]
  void serialize(Archive& ar, const unsigned int version)
                                                 ^
/Users/HurricaneTong/GitHub/mlpack/src/mlpack/../mlpack/core/data/serialization_shim.hpp:496:29: error: unknown type
      name 'BOOST_PFTO'
                      const BOOST_PFTO unsigned int version)
                            ^
/Users/HurricaneTong/GitHub/mlpack/src/mlpack/../mlpack/core/data/serialization_shim.hpp:496:40: error: expected ')'
                      const BOOST_PFTO unsigned int version)
                                       ^
/Users/HurricaneTong/GitHub/mlpack/src/mlpack/../mlpack/core/data/serialization_shim.hpp:494:22: note: to match this '('
inline void serialize(Archive& ar,
                     ^
/Users/HurricaneTong/GitHub/mlpack/src/mlpack/../mlpack/core/data/serialization_shim.hpp:499:23: error: cannot refer to
      class template 'version' without a template argument list
  tptr->Serialize(ar, version);
                      ^
/usr/local/include/boost/serialization/version.hpp:36:8: note: template is declared here
struct version
       ^
1 warning and 3 errors generated.

I go into boost dir and there isn’t a pfto.hpp.

http://www.boost.org/doc/libs/1_59_0/libs/serialization/doc/index.html

It seems boost doesn’t support pfto since 1.58

Shangtong Zhang,
Senior Student,
School of Computer Science,
Fudan University, PRC.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack/attachments/20150925/04a7a912/attachment.html>


More information about the mlpack mailing list