瀏覽代碼

Export symbols used in inline functions

fixed_address_empty_string symbol is used in an inline function.
We have to export it to avoid undefined reference link errors.
Silvio Traversaro 8 年之前
父節點
當前提交
9094bf0f7e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/google/protobuf/generated_message_util.h

+ 1 - 1
src/google/protobuf/generated_message_util.h

@@ -164,7 +164,7 @@ class ExplicitlyConstructed {
 
 // Default empty string object. Don't use this directly. Instead, call
 // GetEmptyString() to get the reference.
-extern ExplicitlyConstructed< ::std::string> fixed_address_empty_string;
+LIBPROTOBUF_EXPORT extern ExplicitlyConstructed< ::std::string> fixed_address_empty_string;
 LIBPROTOBUF_EXPORT extern ProtobufOnceType empty_string_once_init_;
 LIBPROTOBUF_EXPORT void InitEmptyString();