Which libraries must be linked with protocol-buffers generated C++ code
-
10-07-2019 - |
Question
I have the mytest.cc and mytest.h output from a mytest.proto file, but I can't find any reference on to how to compile a object using g++ for this. (the .proto is fine as I got it working with Python)
g++ mytest.cc -l???????
what libraries to include?
Solution
I think you may need to link to libprotobuf
g++ mytest.cc -lprotobuf -o mytest
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow