When will the new version of flex for windows be available?

I use flex (a lexical analyzer, not Adobe Flex) in a project. However, I also want to compile on Windows platforms, but the Windows version is the newest version - only 2.5.4a, so it won’t compile my file for version 2.5.35. And no, I can't upgrade to the highest supported version of Windows.

Does anyone know of plans to upgrade a version of Windows or suggestions for compiling on windows?

+3
source share
2 answers

You can request on the mailing list or take part in the Flex project yourself. I think the codebase for Flex has remained static for a while, but I don't know who supports the Windows port. Meanwhile...

I would recommend including the generated source in your project.

  • Create lexer on a Linux system to create lex.c / lex.h files (or something else)
  • Include these files in Win32 C source code before creating

If you don't have direct access to a Linux system, a virtual machine might be a good idea. The Flex source must complain about some C standard that is built on Windows, but most of the differences in POSIX can be changed to use the Win32 API quite easily.

May be distributed as:

/src/source_files.c
/src/lex.l
/src/win32_lex/lex.c

, flex lex, Windows, , C.

- POSIX (Cygwin - ).

, !

+4

Windows flex 2.5.35 do, , , . MINGW build , Cygwin build ; . fooobar.com/questions/1698589/.... (MINGW Cygwin).

+1

Source: https://habr.com/ru/post/1712950/


All Articles