在windows上制作flex.exe

发布于 2024-12-08 19:27:41 字数 170 浏览 3 评论 0原文

我已经从 Flex 存储库下载了 Flex 的源代码。该文件是 tar.gz 中的 Flex 版本 2.5.35。现在我怎样才能从这个源代码中生成flex.exe呢?

I have downloaded the source code for flex from the Flex repository. The file is flex version 2.5.35 in tar.gz. Now how can I make flex.exe from this source code?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

苏大泽ㄣ 2024-12-15 19:27:41

只需下载二进制包即可,它们可以在这里找到: http://gnuwin32.sourceforge.net/packages /flex.htm 或者,您需要使用源附带的 makefile 来编译它(通过作为参数传递给 gcc 的 make.exe)。

Just download the binary packages instead, they are available here: http://gnuwin32.sourceforge.net/packages/flex.htm alternatively you need to use the makefile the source comes with to compile it (by passing as a parameter to gcc's make.exe).

删除→记忆 2024-12-15 19:27:41

您有两种选择:

  1. 下载,然后按照链接中的说明下载安装程序和依赖关系。
  2. 使用 7-Zip 之类的东西来提取文件并按照包含的说明进行编译(困难得多) 。

前者听起来对您来说是正确的答案,除非您需要最新版本的功能并且您的平台上有可用的 GNU 工具链。我不知道 flex 是否可以使用 MS 编译器进行编译而不会遇到很多麻烦。

You have two options:

  1. Download this instead and follow the directions in the link to download the installer and dependencies.
  2. Use something like 7-Zip to extract the files and follow the included instructions for compilation (much more difficult).

The former sounds like the right answer for you unless you need a feature of the latest version and have the GNU toolchain available on your platform. I don't know if flex will compile with the MS compiler without lots of pain.

や莫失莫忘 2024-12-15 19:27:41

如果您确实想在 Windows 计算机上自己从源代码构建它(可能会也可能不会),您将需要安装 Cygwin

If you really want to build it from source by yourself on a Windows machine (which may or may not work), you will want to install Cygwin first.

怀中猫帐中妖 2024-12-15 19:27:41

您可以尝试以下操作:http://sourceforge.net/projects/winflexbison/
这是移植到 Windows 的最新 Flex-bison 工具,无需额外的依赖项(如 m4.exe 或 Cygwin dll)

You can try this: http://sourceforge.net/projects/winflexbison/
This is latest flex-bison tools ported to windows without extra dependencies (like m4.exe or Cygwin dlls)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文