Windows 7 Windows 7访问被拒绝

Windows 7 Windows 7访问被拒绝,windows-7,Windows 7,我正在尝试构建boost示例。我得到以下错误: 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\hel

我正在尝试构建boost示例。我得到以下错误:

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...

但我不确定如何处理此问题。

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

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

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

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

右键单击文件夹->属性

安全选项卡

点击高级按钮

所有者选项卡

编辑。。钮扣


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

右键单击文件夹->属性

安全选项卡

点击高级按钮

所有者选项卡

编辑。。钮扣


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

谢谢,我将更新一些详细信息,但我不确定如何从这里开始。谢谢,我将更新一些详细信息,但我不确定如何从这里开始。在Process Monitor中,您可以简单地搜索“拒绝”要在进程监视器中查找相关行…只需搜索“拒绝”即可找到相关行。。。
Desired Access: Read Attributes
Disposition:    Open
Options:    Open Reparse Point
Attributes: n/a
ShareMode:  Read, Write, Delete
AllocationSize: n/a