Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339312 - build fails as access is denied to the output file
Summary: build fails as access is denied to the output file
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 00:12 EST by siva CLA
Modified: 2020-09-04 15:22 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?