From 9094bf0f7e638f68cae72581ae8416e7c2721b41 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 12 Jun 2017 17:09:55 +0200 Subject: 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(-) (limited to 'src/google') diff --git a/src/google/protobuf/generated_message_util.h b/src/google/protobuf/generated_message_util.h index 44174466..a7154b40 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(); -- cgit v1.2.3