Re: [protobuf] Missing input file error

2,328 views
Skip to first unread message

Christopher Head

unread,
Nov 7, 2012, 6:56:06 PM11/7/12
to Mohammed, prot...@googlegroups.com
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.
>

Reply all
Reply to author
Forward
Message has been deleted
0 new messages