From 9094bf0f7e638f68cae72581ae8416e7c2721b41 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 12 Jun 2017 17:09:55 +0200 Subject: [PATCH] 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. --- src/google/protobuf/generated_message_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/generated_message_util.h b/src/google/protobuf/generated_message_util.h index 44174466a8..a7154b4015 100644 --- a/src/google/protobuf/generated_message_util.h +++ b/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();