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 <
mr.be...@gmail.com> 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.
>