compile protobuf client code on ubuntu, but include file is not found
问题 I just installed google protocol buffer on my ubuntu1604: sudo apt install protobuf-compiler And tried a quick test, 1 proto file, 1 cpp file to use it, try to see the encode/decode results: $ cat 1.proto package x; message my{ required string name=1; required int32 id=2; optional string email=3; } $ cat 1.cpp #include"1.pb.cc" #include<string> #include<iostream> using namespace std; using namespace x; int main() { my p; p.set_name("tom"); p.set_id(18); p.set_email("aa@bb.com"); string s; my