From cdbb60c7b6dc1c64745e1ce0b0905f3a876a9a1b Mon Sep 17 00:00:00 2001 From: Yang Gao Date: Tue, 24 Feb 2015 15:01:36 -0800 Subject: [PATCH] Add missing protoc command --- cpp/cpptutorial.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/cpptutorial.md b/cpp/cpptutorial.md index af6b6b1a65f..338e1e7d5a4 100644 --- a/cpp/cpptutorial.md +++ b/cpp/cpptutorial.md @@ -101,7 +101,9 @@ $ make route_guide.pb.cc which actually runs: -[actual command] +```shell +$ protoc -I ../../protos --cpp_out=. --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ../../protos/route_guide.proto +``` Running this command generates the following files: - `route_guide.pb.h`, the header which declares your generated classes