2010年8月19日

windows 下 flex 命令行批处理文件

摘要: 1. 通过cygwin 安装 flex2. 新建一个命令行批处理文件调用flexflex.bat@set flex_dir="E:/SDK/cygwin/bin"@set Path=Path;%flex_dir%@REM flex command line@REM Usage@REM flex.bat %grammer_file_name@REM @REM flex parameters used in our command line@REM --nounistd not include unistd.h @REM --never-interactive t... 阅读全文

posted @ 2010-08-19 21:32 NBSTAR 阅读(425) 评论(0) 推荐(0) 编辑

GNU flex unistd.h在VC下的编译问题

摘要: 问题现象:...: fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 原因,flex生成的代码如下:#ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first 阅读全文

posted @ 2010-08-19 21:28 NBSTAR 阅读(881) 评论(0) 推荐(0) 编辑

导航