You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Protocol Buffers
I am trying to understand how --proto_path works. Let's say in
my .proto file have the following import lines:
import "descriptor.proto";
import "google/protobuf/descriptor.proto";
What would the path be for the option?
I have tried using different path:
protoc --proto_path=/usr/local/include/google/protobuf --
cpp_out=. ....
protoc --proto_path=/usr/local/include --cpp_out=. ....
The only way I have gotten it to work is to copy the descriptor.proto
to the current directory for the first import line above. Or create
sub-directories matching path in the second import line.
Kenton Varda
unread,
Jan 11, 2011, 8:55:44 PM1/11/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
I am trying to understand how --proto_path works. Let's say in
my .proto file have the following import lines:
import "descriptor.proto";
import "google/protobuf/descriptor.proto";
Delete the first of these two imports, and then use --proto_path=/usr/local/include.