我正在尝试在我的Windows计算机上安装flex(词法分析器,而不是Adobe程序)。我安装了MSYS。我解压缩,./配置它,但是当我尝试制作它时,我收到了这个错误:
In file included from ccl.c:34:
flexdef.h:94:19: error: regex.h: No such file or directory
In file included from ccl.c:34:
flexdef.h:1195: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'regex_linedir'
flexdef.h:1197: error: expected ')' before '*' token
flexdef.h:1198: error: expected ')' before '*' token
flexdef.h:1199: error: expected ')' before '*' token
flexdef.h:1200: error: expected ')' before '*' token
flexdef.h:1201: error: expected ')' before '*' token
flexdef.h:1202: error: expected ')' before '*' token
make[2]: *** [ccl.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
直到最近,我才使用.exe安装了东西,所以我很担心这个。安装野牛和m4都顺利进行,我想知道为什么不这样做。有什么想法吗?
答案 0 :(得分:0)
你错过了正则表达式库,安装它并重试。