Hi,
The -I option specifies where to look for files you refer to with
“import”. It is not used for the file you are trying to compile. You
want this:

protoc --cpp_out=/home/m/Projects /home/m/AddressBook.proto

If “AddressBook.proto” imports other proto files, you may then need to
add a -I option.

Chris

On Mon, 29 Oct 2012 22:33:51 -0700 (PDT)
Mohammed <[email protected]> wrote:

> I try to compile my .proto file but an error occurred. I typed the 
> following command :
> 
> protoc -I=/home/m/AddressBook.proto --cp_out=/home/m/Projects
> 
> then : 
> 
> Missing input file.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to