博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
无法解析的外部符号 "__int64 google::protobuf::internal::empty_string_once_init_"
阅读量:3977 次
发布时间:2019-05-24

本文共 906 字,大约阅读时间需要 3 分钟。

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

你可能感兴趣的文章
misc_register和register_ch…
查看>>
misc_register和register_ch…
查看>>
misc_register和register_ch…
查看>>
misc_register和register_ch…
查看>>
platform设备添加流程(转载)
查看>>
platform设备添加流程(转载)
查看>>
GCC编译关键字“__attribute_…
查看>>
GCC编译关键字“__attribute_…
查看>>
Linux对I/O端口资源的管理(&nbsp;…
查看>>
Linux对I/O端口资源的管理(&nbsp;…
查看>>
[转载]Linux内核中的platfor…
查看>>
顺序和屏障&nbsp;收藏
查看>>
Linux&nbsp;PCI驱动模型
查看>>
S3C2440上触摸屏驱动实例开发讲解(…
查看>>
Android驱动例子(LED灯控制)(1…
查看>>
第二章&nbsp;Android内核和驱动程序(转)
查看>>
第一章&nbsp;Android系统介绍
查看>>
Android电源管理(zz)
查看>>
Android&nbsp;HAL基础
查看>>
Android电源管理(zz)
查看>>