protobuf-c is a 3rd party plugin/branch, which is not in official protobuf release. You may need to contact the author directly.
On Tue, Jun 21, 2011 at 12:43 PM, Greg Corradini <gregcorrad...@gmail.com>wrote: > Hello, > I'm trying to compile protobuf-c-0.15 on Ubuntu-10.10. I've been > running into this undefined reference problem and have come up short > on answers thought searches. Any ideas from the dump below what I > should look into? > > > /bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -pthread - > o cxx-generate-packed-data cxx-generate-packed-data.o test-full.pb.o - > lprotobuf > libtool: link: g++ -g -O2 -pthread -o cxx-generate-packed-data cxx- > generate-packed-data.o test-full.pb.o /usr/lib/libprotobuf.so -lz - > pthread > cxx-generate-packed-data.o: In function > `foo::TestFieldNo15::set_test(char const*)': > /home/gcorradini/Downloads/protobuf-c-0.15/src/test/generated-code/ > test-full.pb.h:3844: undefined reference to > `google::protobuf::internal::kEmptyString' > cxx-generate-packed-data.o: In function > `foo::TestFieldNo16::set_test(char const*)': > /home/gcorradini/Downloads/protobuf-c-0.15/src/test/generated-code/ > test-full.pb.h:3906: undefined reference to > `google::protobuf::internal::kEmptyString' > cxx-generate-packed-data.o: In function > `foo::TestFieldNo2047::set_test(char const*)': > /home/gcorradini/Downloads/protobuf-c-0.15/src/test/generated-code/ > test-full.pb.h:3968: undefined reference to > `google::protobuf::internal::kEmptyString' > cxx-generate-packed-data.o: In function > `foo::TestFieldNo2048::set_test(char const*)': > /home/gcorradini/Downloads/protobuf-c-0.15/src/test/generated-code/ > test-full.pb.h:4030: undefined reference to > `google::protobuf::internal::kEmptyString' > cxx-generate-packed-data.o: In function > `foo::TestFieldNo262143::set_test(char const*)': > /home/gcorradini/Downloads/protobuf-c-0.15/src/test/generated-code/ > test-full.pb.h:4092: undefined reference to > `google::protobuf::internal::kEmptyString' > cxx-generate-packed-data.o:/home/gcorradini/Downloads/protobuf-c-0.15/ > src/test/generated-code/test-full.pb.h:4154: more undefined references > to `google::protobuf::internal::kEmptyString' follow > collect2: ld returned 1 exit status > make[2]: *** [cxx-generate-packed-data] Error 1 > make[2]: Leaving directory `/home/gcorradini/Downloads/protobuf-c-0.15/ > src/test' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/gcorradini/Downloads/protobuf-c-0.15/ > src' > make: *** [all-recursive] Error 1 > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to protobuf@googlegroups.com. > To unsubscribe from this group, send email to > protobuf+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.