Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339312

Summary: build fails as access is denied to the output file
Product: [Tools] CDT Reporter: siva <siva_kits>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, igpchi, malaperle, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description siva CLA 2011-03-09 00:12:06 EST
Build Identifier: 20100617-1415

c:/wascana/mingw/bin/../lib/gcc/mingw32/4.4.1-dw2/../../../../mingw32/bin/ld.exe: cannot open output file horizontalline.exe: Permission denied.......

Reproducible: Always

Steps to Reproduce:
1.write a simple pgm like hello world....run it ...let the output for the first time come...
2.now change some content in the puts statement and try to run the program again and again ....
3.suddenly when you try to build a debug for the pgm above mentioned error crops up.
Comment 1 iagpconce CLA 2011-07-19 04:50:52 EDT
I'm having the same problem. I'm just starting to use Eclipse CDT and every time I make a change to my code and I want to rebuild it again I get the message: 
cannot open output file test01.exe: Permission denied	test01		 	C/C++ Problem

the problem is solved when I manually erase the exe file generated on the previous build from file system(workspace), only then, eclipse will be able to build the code again so I can see the new changes


any thought?
thanks
Comment 2 Marc-André Laperle CLA 2011-07-19 13:10:29 EDT
Maybe the process is still running? Can you look in the task manager?