Trouble building gcc 4.6: undefined reference to `yylex'

梦想与她 提交于 2019-12-02 20:13:37
Ricbit

Same happened to me, it was due to lack of flex and bison. After installing flex and bison, I ran make distclean and ./configure, then it compiled fine.

It just got into some weird state since I did ./configure and tried to build it before having bison and flex set up properly. Calling make clean wasn't enough. I wiped out the whole thing and did a fresh checkout and it builds fine now.

Ran into this as well but the fix for me was to install bisonc++, for whatever reason I only had bison installed.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!