我正在尝试运行flatc -s test.idl
但没有成功。这曾经可以工作,但是在更换笔记本电脑后,我无法再编译模式了。如果我故意破坏 test.idl,我会收到错误,但如果语法正确,它就会默默地失败。
test.idl 看起来像这样:
namespace Foo;
enum Type : byte {
type_request = 1,
type_reply = 2,
}
struct UUID {
low_bytes: ulong;
high_bytes: ulong;
}
table Request {
req_id: UUID ( required );
}
root_type Request;
table Reply {
req_id: UUID ( required );
}
root_type Reply;
有任何想法吗?我可能正在运行不同版本的 flatc(目前是 1.7.0),有什么变化吗?