The*_*own 4 c++ protocol-buffers
我有一个mytest.proto文件的mytest.cc和mytest.h输出,但我找不到任何关于如何使用g ++编译对象的参考.(.proto很好,因为我使用Python)
g ++ mytest.cc -l ???????
包含哪些库?
小智 11
我想你可能需要链接到libprotobuf
g++ mytest.cc -lprotobuf -o mytest
Run Code Online (Sandbox Code Playgroud)