While trying to invoke the protoc compiler on the windows platform on
a file placed in a path containing spaces the compiler returns with an
error saying that the given path was not found (it shows an incomplete
path up until the first space in the path as part of the error

I am using the following batch file as a work around for now but I
hope the maintainers will rectify this error in any case.

@echo off
::File: Runprotoc.cmd
::%1 = Path to source .proto file

::push the current dir onto the directory stack and change to the
input file's directory
pushd "%~dp1"
echo protoc --cpp_out=. "%~nx1"
protoc --cpp_out=. "%~nx1"

::revert to the directory in use before entering the script

Sandeep Datta
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to