Cygwin Gcc - 访问

发布于 2024-12-06 17:09:33 字数 309 浏览 5 评论 0原文

我目前使用的是 Windows Vista Basic。

我最近开始使用 Eclipse,为此我需要安装 cygwin。 之后,我在“我的电脑>属性>高级设置”中的PATH环境变量中进行了编辑。为了检查功能,我启动了 cmd-prompt 并键入

C:>gcc

这给出了以下输出: 访问被拒绝

我知道这是一个安全权限问题,但我不知道到底在哪里进行安全设置的更改。上次我尝试时,它开始显示“错误非法操作”和一些错误代码。

I'm currently on Windows Vista Basic.

I have recently started on Eclipse, and for that I was required to install cygwin.
After that I made an edit in the PATH environment variable in "My Computer>Properties>Advanced Settings". In order to check the functionality, I started cmd-prompt and types

C:>gcc

This gives the following output: ACCESS IS DENIED

I know it's a security permission problem, but I don't know where exactly to do the change in the security settings. Last time I tried it started showing "error-illegal operation" and some error code.

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

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

发布评论

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

评论(2

梦情居士 2024-12-13 17:09:33

您不能在 cmd 中使用 gcc。您必须在安装 cygwin 时安装的 cygwin shell 中使用它

You can not use gcc in your cmd. you must use it in cygwin shell that installed when you install cygwin

岁月蹉跎了容颜 2024-12-13 17:09:33

您可以在不使用 cygwin shell 的情况下使用 gcc !!

但是您可能最终会遇到一些配置问题,
例如,在正确的位置没有正确的 dll。
另一个可能发生的常见错误是如果您有多个实例
安装了 cygwin 后,搜索路径变得混乱并且 gcc 系统
找不到相关的编译器或尝试使用错误的编译器。

尽管如此,这也是很有可能的,我自己已经做过数百次了,
当测试我编写的编译器时。

您可能想尝试为 c 调用“cc1.exe”,或为 c++ 调用“cc1plus.exe”,
记住将 cygwin dll 复制到与 cc1 或 cc1plus 相同的目录中,

除此之外它可能是您的用户帐户权限。

希望这有帮助。

/托尼

You can use gcc without using the cygwin shell !!

But you will probably end up with some configuration problems,
such as not having the correct dll's in the right places.
Another common error that can occur, is if you have multiple instances
of cygwin installed, the search paths get confused and the gcc system
can't find relevant compiler or tries to use the wrong compiler.

All the same this is very possible, I've done it myself hundreds of time,
when testing compilers I have written.

You might want to try invoking 'cc1.exe' for c, or 'cc1plus.exe' for c++,
remember to copy the cygwin dll's into the same directory as cc1 or cc1plus,

Other than that it could be your user account permissions.

Hope this helps.

/Tony

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