C++:关于“ cannot open Debug/ * .exe for writing”
2012-04-08 14:54
661 查看
转:http://hi.baidu.com/chotenfu/blog/item/72121e059e8f74c67b8947d9.html
一个低级的小问题让我“郁闷”了1天。
今天在编一个通讯函数时,出现了一个奇怪的问题。
描述:函数第一次运行,OK。当进行修改后,运行总是出现如下的错误提示。
--------------------Configuration: community - Win32 Debug--------------------
Compiling...
community.cpp
Linking...
LINK : fatal error LNK1168: cannot open Debug/community.exe for writing
Error executing link.exe.
当将整个环境关闭后,重新执行,也OK。如果在修改后运行仍然出现上述错误提示。......
反复进行上述动作后,仍然无解,结果郁闷到现在。被折磨了一天后,找到正解。原来是我在第一次运行后忘记关掉debug\community.exe
经测试,如果运行后将原先的.exe文件关闭后。再次修改运行,不会出现上述的“奇怪”问题。
此属“低级错误”虽不是技术问题,但第一次遇见,记录之。
一个低级的小问题让我“郁闷”了1天。
今天在编一个通讯函数时,出现了一个奇怪的问题。
描述:函数第一次运行,OK。当进行修改后,运行总是出现如下的错误提示。
--------------------Configuration: community - Win32 Debug--------------------
Compiling...
community.cpp
Linking...
LINK : fatal error LNK1168: cannot open Debug/community.exe for writing
Error executing link.exe.
当将整个环境关闭后,重新执行,也OK。如果在修改后运行仍然出现上述错误提示。......
反复进行上述动作后,仍然无解,结果郁闷到现在。被折磨了一天后,找到正解。原来是我在第一次运行后忘记关掉debug\community.exe
经测试,如果运行后将原先的.exe文件关闭后。再次修改运行,不会出现上述的“奇怪”问题。
此属“低级错误”虽不是技术问题,但第一次遇见,记录之。
相关文章推荐
- C++错误 LINK : fatal error LNK1168: cannot open Debug/ling.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/Test.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/test.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/algorithm.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/Test.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/Test.exe for writing的解决方法
- fatal error LNK1168: cannot open Debug/opreat.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/CCounter.exe for writing 的解决办法
- fatal error LNK1168: cannot open Debug/opreat.exe for writing
- cannot open Debug/*.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/ling.exe for writing
- cannot open Debug/mypicture.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/xxx.exe for writing
- cannot open Debug/HelloWorld.exe for writing
- fatal error LNK1168: cannot open Debug/WinMain.exe for writing 的解决
- LINK : fatal error LNK1168: cannot open ../XTEDVR/Debug/test.exe for writing
- LINK : fatal error LNK1168: cannot open Debug/Test.exe for writing
- fatal error LNK1168: cannot open Debug/opreat.exe for writing
- eclipse for c++程序调试中的问题:cannot open output file study.exe: Permission denied
- cannot open *.exe for writing