当先锋百科网

首页 1 2 3 4 5 6 7

错误类型:

python/caffe/_caffe.cpp:374:10: error: could not convert ‘uid’ from ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ to ‘boost::python::api::object’
   return uid;

解决办法:

修改:/usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h的247行

# define _GLIBCXX_USE_CXX11_ABI 1修改为  # define _GLIBCXX_USE_CXX11_ABI 0即可