You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local pb = require "pb"
local protoc = require "protoc"
local pbdir = "./"
local protofiles = {a.proto,b.proto}
protoc:addpath(pbdir)
for _, proto_filename in ipairs(protofiles) do
local proto = protoc.new()
proto:addpath(pbdir)
proto:loadfile(proto_filename)
end
local dd = {res= {id=1,num=3}, time= 3}
local bytes = pb.encode("MsgGetReq_55012", dd) -- 这样加载失败
-- local bytes = pb.encode("AntiqueMessage.MsgGetReq_55012", dd) -- 这样也是失败的
请问下要如何才能正确加载这种有import引用呢, 感谢
The text was updated successfully, but these errors were encountered:
有文件1,文件名为 a.proto 内容如下
有文件2,文件名为 b.proto 内容如下
加载:
请问下要如何才能正确加载这种有import引用呢, 感谢
The text was updated successfully, but these errors were encountered: