从命令行使用 lcc-win 编译器
我已经安装了lcc编译器,这样我就可以在我的Windows机器上编译c程序- 但我在让它工作时遇到了麻烦...
我将 C:\lcc\bin 添加到我的 PATH 环境变量中,但是当我在命令行中输入:时
lcc args
,我收到此消息:'lcc 未被识别为内部或外部命令、可运行程序或批处理文件'。
如果我实际上导航到文件夹 C:\lcc\bin,我可以执行 lcc 没问题
除了设置 PATH 变量之外,我还需要做其他事情吗?
谢谢!
I have installed the lcc compiler so that I can compile c programs on my windows machine - but I am having troubles getting it to work...
I added C:\lcc\bin to my PATH environment variable, but when I type in:
lcc args
into my command line, I get this message: 'lcc is not recognized as an internal or external command, operable program or batch file'.
If I actually navigate to the folder C:\lcc\bin, I can execute lcc no problem
Is there something else I have to do other than set the PATH variable?
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在使用 lcc 时也遇到了问题。我偶然启动了软件包中包含的编辑器。从那时起它就起作用了。我注意到每次在新计算机上安装它时都必须执行此操作。我认为它与一些必需的初始化文件有关,但仅由编辑器创建。也许这也会对你有帮助。
I had also problems using lcc. By accident I started the editor that was also included in the package. Since then it works. I notice that I have to perform this operation each time I install it on a new computer. I suppose that it has to do with some initialization files that are required, but only created by the editor. Maybe this will also helps you.