设置 Flex(词法分析器)时遇到困难

发布于 2024-12-07 13:16:11 字数 920 浏览 0 评论 0原文

我希望将 Flex 用于大学模块,但是在我的家用计算机上设置它时遇到一些问题。

您认为此错误的可能原因是缺少 .dll 文件,还是我缺少其他内容?

有什么好的、简单的方法来获取这些 .dll 文件?

谢谢。

I'm looking to use Flex for a University module, however I'm having some trouble setting it up on my home computer.

  • I downloaded the Setup file from http://gnuwin32.sourceforge.net/packages/flex.htm

  • I ran Setup

  • I then tried to use flex from the Command Line, by navigating to the directory containing the .l (Lex) file and typing flex -ooutputfile.yy.c inputfile.l (This resulted in the message " 'flex' is not recognised as an internal or external command, operable program or batch file.")

  • I remembered that my tutor had told us to use the Visual Studio 2008 Command line, so I downloaded and installed that from Dreamspark.

  • I tried to do the above, but from the Visual Studio 2008 Command Line. The same message resulted.

  • I looked into the Installation and Usage http://gnuwin32.sourceforge.net/install.html and noticed that it said you would need msvcrt.dll (and sometimes also msvcp60.dll) and that these would be in the Windows\System folder. It also said that these would be there if you had Internet Explorer 4.0. or greater on your system. These .dll files are not there.

Do you think the likely cause of this error is the missing .dll files, or am I missing something else?

What is a good, simple way to get hold of these .dll files?

Thank you.

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

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

发布评论

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

评论(1

木槿暧夏七纪年 2024-12-14 13:16:11

消息

“flex”不被识别为内部或外部命令、可操作程序或批处理文件。

告诉你你的 shell 环境找不到 flex。该环境依赖于其 PATH 变量来获取要搜索的目录列表。您可以

  1. 使用flex安装的完全限定路径名,即

    编辑

    c:\path\to\flexinstall\flex .exe -ooutputfile.yy.c inputfile.l

  2. 将flex安装路径添加到您的Windows 路径。 ControlPanel->System-AdvancedSettings-SystemPropertiesDialogBox->EnvironmentVariablesButton。

我希望这有帮助。

The message

'flex' is not recognised as an internal or external command, operable program or batch file.

is telling you that the environment of your shell can't find flex. The environment is relying on its PATH variable for a list of directories to search. You can

  1. use the fully qualified pathname to your installation of flex, i.e.

    Edit

    c:\path\to\flexinstall\flex .exe -ooutputfile.yy.c inputfile.l

  2. Add the flex installation path to your Windows path. ControlPanel->System-AdvancedSettings-SystemPropertiesDialogBox->EnvironmentVariablesButton.

I hope this helps.

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