Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/328.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用叮当声错误使用Boost编译_Python_C++_Boost_Boost Python_Clang++ - Fatal编程技术网

Python 使用叮当声错误使用Boost编译

Python 使用叮当声错误使用Boost编译,python,c++,boost,boost-python,clang++,Python,C++,Boost,Boost Python,Clang++,我一直在尝试用boost库编译一个库(caffe),在osx10.9上使用clang作为编译器。我在使用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

我一直在尝试用boost库编译一个库(caffe),在osx10.9上使用clang作为编译器。我在使用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_;}
包含在/usr/local/include/boost/thread.hpp:13中的文件中:
在/usr/local/include/boost/thread/thread.hpp:12中包含的文件中:
仅在/usr/local/include/boost/thread/thread_包含的文件中。hpp:17:
在/usr/local/include/boost/thread/pthread/thread_data.hpp:11中包含的文件中:
在/usr/local/include/boost/thread/lock_guard.hpp:12中包含的文件中:
在/usr/local/include/boost/thread/detail/move.hpp:27中包含的文件中:
在/usr/local/include/boost/move/utility.hpp:21中包含的文件中:
在/usr/local/include/boost/move/traits.hpp:20中包含的文件中:
在/usr/local/include/boost/type\u traits/is\u nothrow\u move\u assignable包含的文件中。hpp:15:
在/usr/local/include/boost/type\u traits/has\u triple\u move\u assign包含的文件中。hpp:16:
/usr/local/include/boost/type_traits/is_const.hpp:57:105:错误:“T”未引用值
BOOST_STATIC_常量(bool,value=::BOOST::detail::cv_traits_imp::is_const);
^
/usr/local/include/boost/config/suffix.hpp:394:72:注意:从宏“boost\u STATIC\u CONSTANT”展开
#定义BOOST_STATIC_常量(类型、赋值)STATIC const类型赋值
^
/usr/local/include/boost/type_traits/is_const.hpp:51:17:注:此处声明
模板
usr/local/include/boost/date\u time/gregorian/greg\u day。hpp:44:45:错误:键入“greg\u day\u rep”(又名“constrated\u value”)不是“boost::gregorian::greg\u day”的直接或虚拟基
greg_day(每月的未签名短日):greg_day_代表(每月的第日){}
^~~~~~~~~~~~
/usr/local/include/boost/date\u time/gregorian/greg\u day.hpp:45:46:错误:使用未声明的标识符“value”
无符号短as_number()常量{返回值}
^
/usr/local/include/boost/date\u time/gregorian/greg\u day.hpp:46:46:错误:使用未声明的标识符“value”
运算符unsigned short()常量{返回值}

正如所建议的,使用未声明的标识符是由于未声明的标识符(变量)。这可能是因为您忘了申报或错投。但是,由于这发生在库中,因此情况并非如此。最可能的情况是,您没有包含编译库所需的所有文件,或者出现链接错误。检查编译例程。如建议的,使用未声明的标识符是由于未声明的标识符(变量)。这可能是因为您忘了申报或错投。但是,由于这发生在库中,因此情况并非如此。最可能的情况是,您没有包含编译库所需的所有文件,或者出现链接错误。检查编译例程。