open output file xxx exe Permission denied

本文详细解答了在使用 Eclipse for C/C++ 和 MinGW 进行编程时遇到的权限错误问题。当尝试运行程序多次后,会收到无法打开输出文件的错误信息。文章提供了几种解决方案,包括通过任务管理器结束进程和在 Eclipse 的 Debug 视图中停止程序,以帮助开发者解决此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

               

开发环境  Eclipse  for C/C++  &  MinGW

Error 1, open output file blabla.exe: Permission denied

Every time I start Eclipse on my laptop, I can only compile and run a program once. After that it asks if I want to run it with errors every time. The compiler says this:

Building target: Project01Test.exeInvoking: GCC C++ Linkerg++ -oProject01Test.exe ./test.oC:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/bin/ld.exe: cannot         open output file Project01Test.exe: Permission deniedcollect2: ld returned 1 exit statusmake: *** [Project01Test.exe] Error 1make: Target `all' not remade because of errors.Build complete for project Project01Test
------------------------

Answer: Your program may still be running. Try stopping it by using the small red square on the console window (the one for your program). Another way is switching to the "Debug" perspective, selecting your running program, and stopping it there (also the small red square).

 

 

 

==========================

 

以上摘自网络 http://max.berger.name/howto/cdt/ar01s05.jsp

 

打开任务管理器

 

杀死 xxx.exe 的进程  。。 问题解决

 

 

           
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值