On Mac OSX, I installed protobuf from source via gnu g++ successfully.
And then, I built a .so
library which uses protobuf without any error message.
But the problem is when I'm trying to use this .so
lib, error occurs saying
Symbol not found: __ZN6google8protobuf8internal26fixed_address_empty_stringB5cxx11E
Referenced from: a.so
Expected in: flat namespace
Then I checked if this symbol exists in libprotobuf.a
,
>>> nm -g /usr/local/lib/libprotobuf.a | grep fixed_address_empty_string
no symbols
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
00000000000fb600 S __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
no symbols
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
U __ZN6google8protobuf8internal26fixed_address_empty_stringE
strangly there is no fixed_address_empty_stringB5cxx11E
, but only fixed_address_empty_stringE
.
Please help me to understand how to resolve the problem?