note:pragma message: This header is deprecated. Use boost/integer/integer_log2.hpp> instead.

编译caffe过程中会提示以下信息:

In file included from /usr/local/include/boost/random/detail/integer_log2.hpp:19:0,
from /usr/local/include/boost/random/detail/large_arithmetic.hpp:19,
from /usr/local/include/boost/random/detail/const_mod.hpp:23,
from /usr/local/include/boost/random/linear_congruential.hpp:30,
from /usr/local/include/boost/random/additive_combine.hpp:27,
from /usr/local/include/boost/random.hpp:36,
from src/caffe/util/math_functions.cpp:2:
/usr/local/include/boost/pending/integer_log2.hpp:7:89: note: #pragma message: This header is deprecated. Use <boost/integer/integer_log2.hpp> instead.

原因分析

出现上述现象的原因是安装的boost版本较低,最新版的boost抛弃了/usr/local/include/boost/pending/integer_log2.hpp。

解决方法

ubuntu下打开usr/local/include/boost/random/detail/integer_log2.hpp,将头文件#include <boost/pending/integer_log2.hpp>修改为为#include <boost/integer/integer_log2.hpp>即可解决问题。
ps:boost1.7版本已经修复了该问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值