I would like to do the follwing:
 
foo_primtives.proto:
 
package foo_primitives;
 
messaage bar {
    // some fields;
};
 
message baz {
   // some fields;
}
 
foo_composed_types.proto:
 
import "foo_primtives.proto";
package foo_composed;
 
message foo_complicated {
   optional foo_primitves::bar bar = 1
   optional foo_primitives::baz baz = 2; 
};
 
If I do thus protoc gives me an "Expected field name" error on the first 
colon in the package specifer.
 
If I remove the "package foo_primitves;" from the "foo_primtives.proto" 
file and corresponding "foo_primitves::" from the fields in 
foo_composed.proto, then protoc is happy.
 
Can I import packages? Am I fat-fingerig something?
 
Thanks,
 
Mike
 

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to