On Thursday, November 8, 2012 at 5:26:06 AM UTC+5:30, Christopher Head wrote: > > 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] <javascript:>> 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. > >
Hi, I think the -I or the --proto_path flag should point to the directory that holds your proto file. Eg: protoc -I=/home/m/ -cp_out=/home/m/Projects AddressBook.proto -- * * *DISCLAIMER:* All the content in email is intended for the recipient and not to be published elsewhere without Exadatum consent. And attachments shall be send only if required and with ownership of the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. Email transmission cannot be guaranteed to be secure or error-free, as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission. If verification is required, please request a hard-copy version. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/ea455c0e-8277-4d92-941e-e841498da90a%40googlegroups.com.
