无法解析的外部符号 "__int64 google::protobuf::internal::empty_string_once_init_"

在搭建caffe的过程中,有可能会出现下面三个错误:

error LNK2001: 无法解析的外部符号 "__int64 google::protobuf::internal::empty_string_once_init_" (?empty_string_once_init_@internal@protobuf@google@@3_JA) D:\VS_PROJECT\caffe\caffe\caffe.pb.obj


error LNK2001: 无法解析的外部符号 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const * const google::protobuf::internal::empty_string_" (?empty_string_@internal@protobuf@google@@3PEBV?

basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@EB) D:\VS_PROJECT\caffe\caffe\data_reader.obj

error LNK2001: 无法解析的外部符号 "private: static int google::protobuf::io::CodedInputStream::default_recursion_limit_" (?default_recursion_limit_@CodedInputStream@io@protobuf@google@@0HA) D:\VS_PROJECT\caffe\caffe\io.obj


问题的原因是你采用的google的protobuf的版本是最新的版本与caffe不兼容,应当将protobuf的版本换成以前的,

可换为protobuf-2.5.0.tar.gz,下载地址为:http://pan.baidu.com/s/1pJlZubT,用旧版本的protobuf来配置caffe即可解决问题。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值