Indeed that was the problem, I just delete that parameter, I don't really 
need it to be honest.
Thank you very much for your reply!

On Saturday, April 29, 2017 at 3:03:25 AM UTC+3, Josh Haberman wrote:
>
> I don't think we support building with -fvisibility=hidden.
>
> That said, it might be a simple fix. You could try tweaking the code in 
> base/port.h according to the suggestions here:
>
> https://gcc.gnu.org/wiki/Visibility
>
> If you got it to work I think we would welcome a PR on GitHub.
>
> On Friday, April 28, 2017 at 4:23:35 AM UTC-7, Taw Moto wrote:
>>
>> Hello, 
>>
>> I am trying to compile protobuf with very simple arguments and it does 
>> not work.
>>
>> CFLAGS="-fPIC -DPIC -fvisibility=hidden" CXXFLAGS="-fPIC -DPIC 
>> -fvisibility=hidden" ./configure --prefix=/USERS/test/protobuf-2.5.0/output 
>> --enable-shared --enable-static --with-pic (then make install)
>>
>>
>>
>> main.o: In function `main':
>> main.cc:(.text+0xa5): undefined reference to 
>> `google::protobuf::compiler::cpp::CppGenerator::CppGenerator()'
>> main.cc:(.text+0x1c0): undefined reference to 
>> `google::protobuf::compiler::java::JavaGenerator::JavaGenerator()'
>> main.cc:(.text+0x287): undefined reference to 
>> `google::protobuf::compiler::python::Generator::Generator()'
>> main.cc:(.text+0x36e): undefined reference to 
>> `google::protobuf::compiler::python::Generator::~Generator()'
>> main.cc:(.text+0x37d): undefined reference to 
>> `google::protobuf::compiler::java::JavaGenerator::~JavaGenerator()'
>> main.cc:(.text+0x38c): undefined reference to 
>> `google::protobuf::compiler::cpp::CppGenerator::~CppGenerator()'
>> main.cc:(.text+0x4f9): undefined reference to 
>> `google::protobuf::compiler::python::Generator::~Generator()'
>> main.cc:(.text+0x50d): undefined reference to 
>> `google::protobuf::compiler::java::JavaGenerator::~JavaGenerator()'
>> main.cc:(.text+0x521): undefined reference to 
>> `google::protobuf::compiler::cpp::CppGenerator::~CppGenerator()'
>> ./.libs/libprotoc.so: undefined reference to 
>> `google::protobuf::TextFormat::Parser::Parser()'
>> ./.libs/libprotoc.so: undefined reference to `typeinfo for 
>> google::protobuf::io::ZeroCopyOutputStream'
>> ./.libs/libprotoc.so: undefined reference to 
>> `google::protobuf::compiler::Importer::~Importer()'
>> ./.libs/libprotoc.so: undefined reference to 
>> `google::protobuf::FileDescriptorProto::FileDescriptorProto()'
>> ./.libs/libprotoc.so: undefined reference to 
>> `google::protobuf::compiler::DiskSourceTree::DiskSourceTree()'
>> ./.libs/libprotoc.so: undefined reference to 
>> `google::protobuf::io::FileOutputStream::Close()'
>> ./.libs/libprotoc.so: undefined reference to 
>> `google::protobuf::GoogleOnceInitImpl(long*, google::protobuf::Closure*)'
>> ./.libs/libprotoc.so: undefined reference to 
>> `google::protobuf::internal::StringTypeHandlerBase::Delete(std::__cxx11::basic_string<char,
>>  
>> std::char_traits<char>, std::allocator<char> >*)'
>> ./.libs/libprotoc.so: undefined reference to 
>> `google::protobuf::io::ErrorCollector::~ErrorCollector()'
>> ./.libs/libprotoc.so: undefined reference to 
>> `google::protobuf::io::Printer::Print(char const*, char const*, 
>> std::__cxx11::basic_string<char, std::char_traits<char>, 
>> std::allocator<char> > const&, char const*, 
>> std::__cxx11::basic_string<char, std::char_traits<char>, 
>> std::allocator<char> > const&, char const*, 
>> std::__cxx11::basic_string<char, std::char_traits<char>, 
>> std::allocator<char> > const&)'
>>
>> How can I fix this?
>> Thanks
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to