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;
2 つの宣言のいずれかを削除します。