2010-03-25 3 views
2

Windows 컴퓨터에 flex (어도비 프로그램이 아닌 어휘 분석기)를 설치하려고합니다. 나는 MSYS를 설치했다. 나는 그것을 ./configure 아마, 플렉스 압축을 풀어야,하지만 난 그것을 확인하려고 할 때이 오류가 얻을 :flex (어휘 분석기) 컴파일 오류

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를 사용하여 오직 설치 일을했습니다, 그래서 나는 꽤 혼란 스러워요을 이것에 의해서. bison과 m4를 모두 설치하는 것이 순조롭게 진행되었으며, 왜 이것이 아닌지 궁금합니다. 어떤 아이디어?

+0

"Adobe Flex"또는 "Fast Lexical Analyzer (flex)"프로젝트를 말하고 있습니까? 이전 버전 인 경우 잘못된 코드가 있습니다. 나중에있을 경우 대부분의 사람들이 Adobe Flex를 참조하기 때문에 'flex'태그를 사용하지 않아야합니다. – Marplesoft

+0

후자와 같은 굴곡. 나는 flex로 untag하겠습니다. – Maulrus

답변

0

정규식 라이브러리가 누락되었습니다. 설치하고 다시 시도하십시오.

+0

어디에서 flex 디렉토리를 기준으로 설치합니까? – Maulrus

+0

"정규식 라이브러리"란 무엇입니까? 정규식 엔진으로 충분합니까 아니면 특정 정규식 엔진이 필요합니까? – Steven

+0

gnu 정규식 라이브러리 - http://www.gnu.org/s/libc/manual/html_node/regular-Expressions.html – lazy1