【问题标题】:Windows 7 Access is DeniedWindows 7 访问被拒绝
【发布时间】:2011-04-29 22:06:36
【问题描述】:

我正在尝试构建增强示例。我收到以下错误:

Access is denied.
Access is denied.
...found 9 targets...
...updating 2 targets...
gcc.compile.c++ bin\gcc\debug\hello.o
Access is denied.

    "g++"  -ftemplate-depth-128 -O0 -fno-inline -Wall -g     -c -o "bin\gcc\debu
g\hello.o" "hello.cpp"

...failed gcc.compile.c++ bin\gcc\debug\hello.o...
...skipped <pbin\gcc\debug>hello.exe for lack of <pbin\gcc\debug>hello.o...
...failed updating 1 target...
...skipped 1 target...

我不熟悉 Windows 7,但我相信我拥有正确的访问权限:

谁能解释一下这个错误?谢谢。

更新:

Process Manager 为 bjam 找到数百个不成功的结果。如果有帮助,典型的行具有以下属性:

Desired Access: Read Attributes
Disposition:    Open
Options:    Open Reparse Point
Attributes: n/a
ShareMode:  Read, Write, Delete
AllocationSize: n/a

不过,我不确定如何处理。

【问题讨论】:

  • 在进程监视器中,您可以简单地搜索“拒绝”找到相关行...

标签: windows-7


【解决方案1】:

调试权限问题的最简单方法是使用 Microsoft 的 Process Monitor 工具 - 在那里您可以轻松查看哪个对象(文件)以及哪个用户发生了拒绝访问错误。

【讨论】:

  • 谢谢,我会更新更多信息,但我不确定如何从这里开始。
【解决方案2】:

字符串bin\gcc\debug\hello.o 表示它正在尝试将目标文件放入编译器的安装目录。你没有权限在那里写。你需要让它把它的文件放在你的hello目录中。

【讨论】:

    【解决方案3】:

    右键单击文件夹 -> 属性

    安全标签

    点击高级按钮

    所有者标签

    编辑..按钮

    在“将所有者更改为”中选择管理员,选中“替换子容器和对象的所有者”..这可能需要一段时间

    【讨论】:

      猜你喜欢
      • 2012-07-23
      • 1970-01-01
      • 1970-01-01
      • 2011-08-08
      • 1970-01-01
      • 2015-11-27
      • 1970-01-01
      • 2013-05-07
      • 2020-02-12
      相关资源
      最近更新 更多