前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >无法解析的外部符号 "__int64 google::protobuf::internal::empty_string_once_init_"

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

作者头像
Tyan
发布2022-08-11 15:01:16
7530
发布2022-08-11 15:01:16
举报
文章被收录于专栏:SnailTyanSnailTyan

在搭建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即可解决问题。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2016-01-27,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档