Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在终端(Linux UBUNTU)中运行以下命令: bison -yd HML.y 我需要生成 y.tab.c 文件。但我得到一个错误:
HML.y:141.7-14: %type redeclaration for model HML.y:123.7-14: previous declaration
该错误消息是什么意思?有人可以帮我吗?非常感谢!
查看HML.y文件中的第 123 和 141 行。查看是否在两行都声明了非终端模型,如下所示:
%type <something> model;
删除两个声明之一。