简体   繁体   English

编译Flex时出错(词法分析器)

[英]Error compiling flex (the lexical analyzer)

I'm trying to install flex (the lexical analyzer, not the Adobe program) on my Windows computer. 我正在尝试在Windows计算机上安装flex(词法分析器,而不是Adobe程序)。 I have MSYS installed. 我已经安装了MSYS。 I untar flex, ./configure it, but when I try to make it, I get this error: 我解压缩flex ../ configure,但是当我尝试制作它时,出现此错误:

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

Until recently, I've only ever installed things using an .exe, so I'm pretty confused by this. 直到最近,我才使用.exe安装东西,因此对此我感到很困惑。 Installing bison and m4 both went smoothly, and I'm wondering why this isn't. 安装bison和m4都很顺利,我想知道为什么不是这样。 Any ideas? 有任何想法吗?

您缺少正则表达式库,请安装它,然后重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM