,class std::allocator > > goog..._无法解析的外部符号 "class google::protobuf::internal::explicitlyconstructed<">
当前位置:   article > 正文

无法解析的外部符号 "class google::protobuf::internal::ExplicitlyConstructed fixed_address_empty_string

无法解析的外部符号 "class google::protobuf::internal::explicitlyconstructed<

使用protobuf时,报错“无法解析的外部符号 "class google::protobuf::internal::ExplicitlyConstructed<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > google::protobuf::internal::fixed_address_empty_string" 

 

此时只需要在stdafx.h里添加宏定义

#define PROTOBUF_USE_DLLS

重新编译即可

 

参考

https://www.cnblogs.com/wzxNote/p/10607684.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/922411
推荐阅读
相关标签