我正在做一个使用git的项目。我有一个分支,一直编译得很好,但当我尝试从头开始构建它时,我开始在编译时收到这个奇怪的错误:
In file included from ~/path/to/boost/install/include/boost/serialization/set.hpp:26:0,
~/path/to/boost/install/include/boost/serialization/detail/stack_constructor.hpp: In constructor 'boost::serialization::detail::stack_construct<Archive, T>::stack_construct(Archive&, unsigned int)':
~/path/to/boost/install/include/boost/serialization/detail/stack_constructor.hpp:54:9: error: 'load_construct_data_adl' is not a member of 'boost::serialization'
boost::serialization::load_construct_data_adl(
^有什么想法吗?
发布于 2015-07-18 05:58:57
我将冒险猜测,除了MUQ构建配置的一部分之外,还可以找到系统打包的boost头文件。
MUQ下载、构建并安装boost (似乎是在/usr/local/muq_external/include/boost中),但是如果你的系统包直接在/usr/include中安装了冲突版本的boost头文件,那么在muq_external版本之前就可以找到这些头文件。
我会确保没有为boost安装系统范围的dev文件。或者,您可以查看哪些文件编译失败,并查看哪些包含路径适用。
如果可以,请尝试为出现故障的翻译单元生成预处理器输出。注释将准确地显示包含(从)何处的报头版本。
https://stackoverflow.com/questions/31481685
复制相似问题