ld.exe:无法打开输出文件...:权限被拒绝 [英] ld.exe: cannot open output file ... : Permission denied

查看:4770
本文介绍了ld.exe:无法打开输出文件...:权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了重温我的C技能我最近安装$ C $个cblocks与Windows 7旗舰版32位mingw32的,但这个问题有我有点难倒。

I recently installed CodeBlocks with mingw32 on Windows 7 Ultimate 32bit in order to dust off my c skills, but this problem has me somewhat stumped.

我决定火了很短的斐波那契数生成器,以确保我的设置是工作,但我遇到了一个障碍。

I decided to fire off a short Fibonacci generator to make sure my setup was working, but I ran into a hurdle.

该程序编译,链接和诸如此类的东西就像一个魅力,我得到它运行如预期对应的可执行。

The program compiles, links and whatnot like a charm and I get a corresponding executable which runs as expected.

如果我再次尝试编译出现的问题,然后我得到以下内容:

The problems occur if I try to compile again, then I get the following:

c:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot open output file bin\Debug\Fibonacci.exe: Permission denied

我甚至不能编辑生成的可执行文件的权限。

I can't even edit the permissions of the generated executable.

我已经签了秋后算账:


  • 的可执行文件是实实在在没有运行。

  • 路径可执行文件的读/写来的mingw32(否则将不能够建立在首位)

  • 我没有在任何形状或形式运行cygwin的。

和现在的滑稽位:几分钟后,一般情况下,通过的mingw32这是显示该拒绝访问行为产生的任何可执行文件会自动无需任何干预的消失从我

And now for the funny bit: Usually after a few minutes, any executables generated by mingw32 which are displaying this Access Denied behaviour will automatically vanish without any intervention from me.

我已经有点一派这一点,但其他大部分的结果要么含糊不清或不适用的。

I've googled this somewhat, but most of the other results were either vague or inapplicable.

我不知道是否有一些Windows 7的安全设置,严重破坏了我的.exe的,但我不是对知识的Win 7的如知道从哪里开始搜索。

I wonder whether there is some Windows 7 security setting playing havoc with my .exe's, but I'm not that knowledgeable about Win 7 as to know where to begin searching.

任何一个有什么想法?

推荐答案

如果您认为可执行文件是由一个进程锁定,请尝试从Sysinternals的进程资源管理器。在文件/手柄,输入Fibonacci.exe你应该看到谁拥有的文件。

If you think the executable is locked by a process, try Process Explorer from SysInternals. In the File/handle, enter Fibonacci.exe and you should see who holds the file.

如果这还不够,你可以使用进程监视器(Sysinternals公司,再次)遵守所有进程的活动您的系统上Fibonacci.exe上。
随着分析(调用栈)的一点点,你可能会找出为什么对该文件的访问被拒绝,什么让它消失。

If it is not enough, you can use Process Monitor (from SysInternals, again) to follow the activity of all processes on your system on Fibonacci.exe. With a little bit of analysis (call stacks), you'll may find out why the access to the file is denied and what make it disappear.

这篇关于ld.exe:无法打开输出文件...:权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆