grpc:--proto_path passed empty directory name. (Use “.“ for current directory.)

这将生成消息结构所需的 cpp 文件

protoc.exe  -I=. --cpp_out=. .\helloworld.proto

报错:

–proto_path passed empty directory name. (Use “.” for current directory.)

解决:

protoc.exe  --cpp_out=. .\helloworld.proto

此命令将生成服务接口所需的 cpp 文件

protoc.exe  --grpc_out=. --plugin=protoc-gen-grpc=grpc_cpp_plugin.exe helloworld.proto


版权声明:本文为philosophyatmath原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。