User forums > General (but related to Code::Blocks)
windows 7 "permission denied" problem
Alpha:
It seems you are using cygwin, not mingw?! Not only that, but if I am reading correctly, it is a six year old version of gcc. Since you did find the mingw folder in your Code::Blocks installation, I assume that it has been installed as well, but that cygwin resides somewhere else on your hard-drive (possibly the root of the C: drive), and is interfering. I would highly recommend purging your computer of all compilers, then installing the TDM build mingw (the official version should be fine as well if you want).
To get a log of those errors, you can enter
g++ main.cpp -o main.exe > log.txt
Also, it is possible that some previous installation has left something in your path environment. Look at/post the results of
path > pathLog.txt
I think a rogue cygwin installation is the cause of your problems. (If I remember correctly, cygwin has some problems about requiring to be run as administrator, so that could explain the "permission denied" problems.)
websnake:
so thats the problem i installed cygwin for PSP development.
ok i can remove it i don't use it much now so how can i completely uninstall cygwin(maybe i should use google for this question).
if any one can tell me where i can find a tutorial about uninstalling it that would be really help full.
Alpha:
Try one of these.
http://techsecure.blogspot.com/2007/04/uninstalling-cygwin-from-windows_13.html
http://jrshelby.com/grass/remove.htm
http://pigtail.net/LRP/printsrv/remove-cygwin.html
Warning, be careful as this requires manual registry editing.
websnake:
thanks.
timojaask:
I am having exactly the same problem, but it cannot be C::B or mingw, because I have the same problem in C::B, in Dev-C++ and in SharpDevelop (msbuild.exe for C# compiling). Deleting executable by hand from Explorer works when compiling in C#, but executables compiled with mingw cannot be deleted even manually. It says I need Administrator permissions, but I am the administrator. Executables compiled with mingw disappear after a couple of minutes after I try to delete them. I am running Windows 7 x64.
The problem occurs even if I don't run the compiled executable.
Turning off AV doesn't help either.
I was trying to search for the name of the executable in Process Explorer, but it doesn't return any results.
This is among the most annoying things I have had in my programming experience. Working on a project 8 hours / day, while compiler fails to write the executable is so damn frustrating.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version