使用Clang错误进行Boost编译

时间:2016-06-28 05:17:46

标签: python c++ boost boost-python clang++

我一直在尝试使用clang作为OSX 10.9上的编译器,使用boost库编译库(caffe)。我在使用boost(版本1.57)时遇到了很多错误。有关如何进行的任何建议?以下是错误的样子。他们主要是关于以下两个问题。

In file included from /usr/local/include/boost/thread.hpp:13:
In file included from /usr/local/include/boost/thread/thread.hpp:12:
In file included from /usr/local/include/boost/thread/thread_only.hpp:17:
In file included from /usr/local/include/boost/thread/pthread/thread_data.hpp:11:
In file included from /usr/local/include/boost/thread/lock_guard.hpp:12:
In file included from /usr/local/include/boost/thread/detail/move.hpp:27:
In file included from /usr/local/include/boost/move/utility.hpp:21:
In file included from /usr/local/include/boost/move/traits.hpp:20:
In file included from /usr/local/include/boost/type_traits/is_nothrow_move_assignable.hpp:15:
In file included from /usr/local/include/boost/type_traits/has_trivial_move_assign.hpp:16:
/usr/local/include/boost/type_traits/is_const.hpp:57:105: error: 'T' does not refer to a value
   BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)>::is_const);
                                                                                                        ^
/usr/local/include/boost/config/suffix.hpp:394:72: note: expanded from macro 'BOOST_STATIC_CONSTANT'
#     define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment
                                                                       ^
/usr/local/include/boost/type_traits/is_const.hpp:51:17: note: declared here
template <class T>


usr/local/include/boost/date_time/gregorian/greg_day.hpp:44:45: error: type 'greg_day_rep' (aka 'constrained_value<greg_day_policies>') is not a direct or virtual base of 'boost::gregorian::greg_day'
    greg_day(unsigned short day_of_month) : greg_day_rep(day_of_month) {}
                                            ^~~~~~~~~~~~
/usr/local/include/boost/date_time/gregorian/greg_day.hpp:45:46: error: use of undeclared identifier 'value_'
    unsigned short as_number() const {return value_;}
                                             ^
/usr/local/include/boost/date_time/gregorian/greg_day.hpp:46:46: error: use of undeclared identifier 'value_'
    operator unsigned short()  const {return value_;}

0 个答案:

没有答案