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.
