I'm using v 4.9.9.2 and I'm having some trouble compiling projects. I've been able to compile Example/hello.cpp when it's not in a project, but when I put it in a project I come up with this error:
Access is denied.
C:\Dev-Cpp\Makefile.win [Build Error][Examples/Hello/Hello.o] Error 5
I have to go to work now, if you need something else from me, I'll try and post it later today.
Thank You.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I installed Dev-C++ on my wife's laptop and it worked just fine so it's something on my computer, not the program I tried to run.
I did follow the instructions for uninstalling as listed on RBYP thread.
I've changed the temp folder as suggested to C:\TEMP but that didn't seem to work either.
I did run chkdsk -F, nothing much.
I did mess around with the permissions on C:\TEMP, I basically went to Properties->Security Tab and changed the "Everyone" group to "Full Control". Nothing.
Any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"I did follow the instructions for uninstalling as listed on RBYP thread"
NO YOU MOST CERTAINLY DID NOT FOLLOW THOSE DIRECTIONS!
Why am I yelling?
Those directions make a HUGE HAIRY point of saying that if you are still having problems, you need to tell us exactly, step by step, what you did, and WHATEVER YOU DO, DO NOT just post a simple line about how you followed the directions.
We need to know what you did and did not do. The reason is, that while what I wrote in that thread provides a guideline, there is definitely the possibility that you might, based on what you observe, have to do other things. A statement like you followed the directions doesn't help there.
I wrote the stuff about telling us exactly what you did, not to annoy you, or to make you do extra work, but because a clear understanding of what you did helps us get you going faster. And that is what this process is about, right?
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-02-05
What else do you have installed of the affected computers? Other development tools, especially GNU related tools such as cygwin can mess with teh MinGW toolchain.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've got a lot of junk installed, it's a three year old computer. However, I don't have a lot of development stuff. ActivePerl 5.8.7, ASP.Net Web Matrix, that's about it. Since trying to get Dev-C++ to work I installed CodeBlocks and it worked. I'd post a build log from CodeBlocks but I can't seem to find one that shows much info. I'll keep looking.
-Sean
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) I went to the Dev-C++ folder and ran the uninstall program.
(2) I deleted the Dev folder.
(3) This one was interesting and I'm suprised it hasn't led to more questions. I found these two files before I uninstalled and was all ready to delete them after the uninstall was done. But then the uninstall program asks at the end if you'd like to remove the config files and I said 'Yes'. Then the files got deleted automically. I searched my computer to make sure they weren't somewhere else, but nothing showed up. So I deleted the empty folder and counted myself lucky that I happened to be watching as they got deleted.
Anything else you need?
-Sean
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"On one of the early menu screens, there is a long menu of options, did you select the one option to delete previous configuration files?"
I've installed it a number of different times now, I think most of the time I go with the default which is "No" but I'm pretty sure I've done it a couple times checked. I'll try again with it checked. As for the other options, they're all selected. I don't think I've tried it any other way.
When it asks if I want to install Dev-C++ for "All users on this Computer" I selected Yes the first time, but I haven't since.
First time, I turned the Class Browser on, since then I've left it off.
Okay, I've reinstalled with "Remove Previous..." and it still didn't work.
-Sean
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
And as I mumbled in the instructions, I have seen things show up like c:\program that will have Dev stuff in it because it tried to install in program files
Wayne
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-02-05
By default Code::Blocks installs the MinGW toolchain, just like Dev-C++, so there may be a conflict there, bit I'd be surprised. You might consider installing the Dev-C++ IDE only version, and then manually setting it up to point to the Code::Blocks' toolchain installation.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am not sure I followed all the posts to this question but yes I have had a similar problem.
One was caused by the project file being in the c:... folder and the rest of the project in another folder on another drive.
I started the project again and made sure everything ended up in the same folder.
The other problem that I had was that the file it wanted to overwrite, had for some reason either become a read only file or was in use by another application. Cannot remember which.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, a good place to start is the "Basic 3" pieces of information - they are covered in the information in the thread titled Please Read Before Posting a Question in this forum.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
2) I'm trying to compile the hello.cpp that is in the example folder. It seems to work fine when I compile it outside of a project but when I create a project and try to compile it, it won't work.
process_begin: CreateProcess(C:\DOCUME~1\SEANAH~1\LOCALS~1\Temp\make30122.bat, C:\DOCUME~1\SEANAH~1\LOCALS~1\Temp\make30122.bat, ...) failed.
make (e=5): Access is denied.
make.exe: *** [Hello.o] Error 5
Execution terminated
4) What I've tried so far: I've restarted. I've reinstalled and restarted. I searched for "error 5" and that's what led me to the reinstall.
Sean
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-02-04
make.exe: *** [Hello.o] Error 5
simply means that make.exe executed a command that returned with errorlevel 5. That command was g++.exe, and the error is as described above that (access denied on an attempt to create a process).
It seems that for some reason you do not have access to your own documents and settings[userprofile]\Local Settings\temp folder.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-02-04
You might try changing the location for the TEMP and TMP envronment variables - although that may be just avoiding the problem rather than fixing it.
Running chkdsk might be a good idea.
If all else fails you might check the access rights to that folder (in XP Home, you have to boot in safe mode to do that, in XP Professional you can check directly. Take care however, it is possible to royally screw your system if you don't know what you are doing.
When you did the reinstall did you follow the instructions from the 'read before posting' thread?
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"You might try changing the location for the TEMP and TMP envronment variables - although that may be just avoiding the problem rather than fixing it."
Thanks for the advice. However, I've been looking for how to do this but I can't find it anywhere.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Right Click on "My Computer", bring up the properties menu - select the "Advanced Tab", click the "Environment Variables" button.
These variables are probably already set for your username there, so all you have to do it edit them. If they are not set, then you can use the "New" button to do so.
That's the way I do it anyway.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using v 4.9.9.2 and I'm having some trouble compiling projects. I've been able to compile Example/hello.cpp when it's not in a project, but when I put it in a project I come up with this error:
Access is denied.
C:\Dev-Cpp\Makefile.win [Build Error] [Examples/Hello/Hello.o] Error 5
I have to go to work now, if you need something else from me, I'll try and post it later today.
Thank You.
I installed Dev-C++ on my wife's laptop and it worked just fine so it's something on my computer, not the program I tried to run.
I did follow the instructions for uninstalling as listed on RBYP thread.
I've changed the temp folder as suggested to C:\TEMP but that didn't seem to work either.
I did run chkdsk -F, nothing much.
I did mess around with the permissions on C:\TEMP, I basically went to Properties->Security Tab and changed the "Everyone" group to "Full Control". Nothing.
Any ideas?
"I did follow the instructions for uninstalling as listed on RBYP thread"
NO YOU MOST CERTAINLY DID NOT FOLLOW THOSE DIRECTIONS!
Why am I yelling?
Those directions make a HUGE HAIRY point of saying that if you are still having problems, you need to tell us exactly, step by step, what you did, and WHATEVER YOU DO, DO NOT just post a simple line about how you followed the directions.
We need to know what you did and did not do. The reason is, that while what I wrote in that thread provides a guideline, there is definitely the possibility that you might, based on what you observe, have to do other things. A statement like you followed the directions doesn't help there.
I wrote the stuff about telling us exactly what you did, not to annoy you, or to make you do extra work, but because a clear understanding of what you did helps us get you going faster. And that is what this process is about, right?
Wayne
What else do you have installed of the affected computers? Other development tools, especially GNU related tools such as cygwin can mess with teh MinGW toolchain.
Clifford
Hmmm...
I've got a lot of junk installed, it's a three year old computer. However, I don't have a lot of development stuff. ActivePerl 5.8.7, ASP.Net Web Matrix, that's about it. Since trying to get Dev-C++ to work I installed CodeBlocks and it worked. I'd post a build log from CodeBlocks but I can't seem to find one that shows much info. I'll keep looking.
-Sean
All right:
1) I went to the Dev-C++ folder and ran the uninstall program.
(2) I deleted the Dev folder.
(3) This one was interesting and I'm suprised it hasn't led to more questions. I found these two files before I uninstalled and was all ready to delete them after the uninstall was done. But then the uninstall program asks at the end if you'd like to remove the config files and I said 'Yes'. Then the files got deleted automically. I searched my computer to make sure they weren't somewhere else, but nothing showed up. So I deleted the empty folder and counted myself lucky that I happened to be watching as they got deleted.
Anything else you need?
-Sean
"I searched my computer to make sure they weren't somewhere else, but nothing showed up."
How did you configure your search?
Wayne
First I made sure "Search hidden files and folders" was selected then I searched my whole C: directory for the files.
What did you search for?
Wayne
And when you installed, after that, what options did you select?
On one of the early menu screens, there is a long menu of options, did you select the one option to delete previous configuration files?
Wayne
"What did you search for?"
First "devcpp.ini" then "devcpp.cfg".
"On one of the early menu screens, there is a long menu of options, did you select the one option to delete previous configuration files?"
I've installed it a number of different times now, I think most of the time I go with the default which is "No" but I'm pretty sure I've done it a couple times checked. I'll try again with it checked. As for the other options, they're all selected. I don't think I've tried it any other way.
When it asks if I want to install Dev-C++ for "All users on this Computer" I selected Yes the first time, but I haven't since.
First time, I turned the Class Browser on, since then I've left it off.
Okay, I've reinstalled with "Remove Previous..." and it still didn't work.
-Sean
I would try a looser search, something like
devcpp*
or even
devc*
And as I mumbled in the instructions, I have seen things show up like c:\program that will have Dev stuff in it because it tried to install in program files
Wayne
Wayne
By default Code::Blocks installs the MinGW toolchain, just like Dev-C++, so there may be a conflict there, bit I'd be surprised. You might consider installing the Dev-C++ IDE only version, and then manually setting it up to point to the Code::Blocks' toolchain installation.
Clifford
I am not sure I followed all the posts to this question but yes I have had a similar problem.
One was caused by the project file being in the c:... folder and the rest of the project in another folder on another drive.
I started the project again and made sure everything ended up in the same folder.
The other problem that I had was that the file it wanted to overwrite, had for some reason either become a read only file or was in use by another application. Cannot remember which.
Well, a good place to start is the "Basic 3" pieces of information - they are covered in the information in the thread titled Please Read Before Posting a Question in this forum.
Wayne
All right, let's try this again.
1) Windows XP, SP2. Version 4.9.9.2
2) I'm trying to compile the hello.cpp that is in the example folder. It seems to work fine when I compile it outside of a project but when I create a project and try to compile it, it won't work.
3) Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Examples\Hello\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Examples\Hello\Makefile.win" all
g++.exe -DDEBUG -c Hello.cpp -o Hello.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -g3
process_begin: CreateProcess(C:\DOCUME~1\SEANAH~1\LOCALS~1\Temp\make30122.bat, C:\DOCUME~1\SEANAH~1\LOCALS~1\Temp\make30122.bat, ...) failed.
make (e=5): Access is denied.
make.exe: *** [Hello.o] Error 5
Execution terminated
4) What I've tried so far: I've restarted. I've reinstalled and restarted. I searched for "error 5" and that's what led me to the reinstall.
make.exe: *** [Hello.o] Error 5
simply means that make.exe executed a command that returned with errorlevel 5. That command was g++.exe, and the error is as described above that (access denied on an attempt to create a process).
It seems that for some reason you do not have access to your own documents and settings[userprofile]\Local Settings\temp folder.
Clifford
You might try changing the location for the TEMP and TMP envronment variables - although that may be just avoiding the problem rather than fixing it.
Running chkdsk might be a good idea.
If all else fails you might check the access rights to that folder (in XP Home, you have to boot in safe mode to do that, in XP Professional you can check directly. Take care however, it is possible to royally screw your system if you don't know what you are doing.
When you did the reinstall did you follow the instructions from the 'read before posting' thread?
Clifford
"You might try changing the location for the TEMP and TMP envronment variables - although that may be just avoiding the problem rather than fixing it."
Thanks for the advice. However, I've been looking for how to do this but I can't find it anywhere.
One way:
Right Click on "My Computer", bring up the properties menu - select the "Advanced Tab", click the "Environment Variables" button.
These variables are probably already set for your username there, so all you have to do it edit them. If they are not set, then you can use the "New" button to do so.
That's the way I do it anyway.
Wayne