pbc icon indicating copy to clipboard operation
pbc copied to clipboard

pbc 使用parser加载使用了import 指令的proto描述文件报错!!!!!!!

Open sctangqiang opened this issue 9 years ago • 1 comments

b.proto message Person { optional int32 age = 1; optional string name = 2; } a.proto

import "b.proto";

message AAA { optional Person player = 1; }

///////////////////////////////////////////////////////////////////////////

如果用parser.register({"a.proto", "b.proto"}, nil) 注册就会报错, 报Person找不到

sctangqiang avatar Nov 23 '16 07:11 sctangqiang

有依赖关系的先把依赖register。 parser.register({"b.proto", "a.proto"}, nil)

setlin avatar Nov 23 '16 07:11 setlin