Right. Please see the document in
http://code.google.com/apis/protocolbuffers/docs/proto.html

The protocol compiler searches for imported files in a set of directories
specified on the protocol compiler command line using the
-I/--proto_pathflag. If no flag was given, it looks in the directory
in which the compiler
was invoked. In general you should set the --proto_path flag to the root of
your project and use fully qualified names for all imports.

On Thu, Mar 3, 2011 at 7:36 AM, ZHOU Xiaobo <[email protected]> wrote:

> I can't use "import ../other_path/xx.proto".
> It seems that the 'import' instruction doesn't search files out of
> 'ptoto_path'
>
> thanks.
>
> --
> 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.
>
>

-- 
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