I'm dinking around with Dev 4.9.9.2 on XP and am having problems with the compiler (I think). Specifically, when I try to re-compile code, I get an error message saying something about a "resource error". And when I try to manually delete the .exe files, Windows claims that my access is denied.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-09-23
>> But what are you gonna do?
1) Make sure you do "Press any key to continue" at the end of your program execution before attempting a re-compile. If the executable is running it is protected from being over written by a recompile.
2) Use Task Manager (Ctrl-Alt-Del) to determine if the Hello_World.exe process still exists. If it does terminate it before recompiling. Or if its windows is still visible, just terminate it with the X button on the title bar.
Is it possible that "about fifty percent of the time" you forget to let your program terminate?
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"Specifically, when I try to re-compile code, I get an error message saying something about a "resource error". And when I try to manually delete the .exe files, Windows claims that my access is denied."
The access issue suggest to me that the executable is still running. Did you stop it after your last run?
Clever name by the way, I like it.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-08-18
Is this a GUI application? If not it should not normally be trying to compile resource files in any case. Check in Project->Project options->General that you have the correct project type selected.
Don't put your projects here: "C:\Dev-Cpp\Projects\". There is an apparent bug in Dev-C++ that sometimes causes it to fail in peculiar ways when projects are built in sub folders of c:\dev-cpp.
Don't put anything in "Hello World", or any other folder containing spaces in its name, there are issues in the tool chain that sometimes cause problems with such paths.
Fix all three of the above even if just one seems to solve the problem.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First, thanks for the help. I really appreciate it.
Second . . . it's still giving me problems. I fixed everything Clifford suggested and checked Task Manager to see if instances were still running. I tried exiting out of command prompt by clicking the little 'x' instead of just 'hitting enter to continue . . . ' Interestingly, if I close the window that way, it doesn't give me an error when I re-compile, but it just won't run. And if I try to manually run it, I get the "You may not have the appropriate permissions to access the item" error.
"Clever name by the way, I like it."
Thanks :D
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-08-18
>> I fixed everything Clifford suggested ...
Now then post a new log from a "Rebuild All" and post the associated code. That way we can verify that all the suggested fixes were successfully applied and see if there is an issue with the code.
Your original log showed it failing to build, now you are suggesting that you can run the code, so the problem is now a different problem, and new information is required.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"The access issue suggest to me that the executable is still running. Did you stop it after your last run?"
I think Wayne is right - when I restart my computer and compile, there are no problems. It's when I try to re-compile that I get the error messages. I looked through task manager again and I'm still not finding any instances of my program . . . am I missing something?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-08-20
Sorry to keep on, but can you post a successful "Rebuild All" log just after you have re-booted? It might just help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm sorry, you guys were helping me and then I just disappeared. I kind of fixed my problem, after getting frustrated and giving up. I'm pretty sure that's what made America great, right?
Anyway, I have no idea what caused it, but I made sure to put all my files in C:\mycfiles, and put no spaces in the file/folder names. Now, about fifty percent of the time, everything works fine.
And if I just copy/paste my work into a new project, I can get it to re-compile.
Unfortunately, my directory looks like this now:
C:\mycfiles\project\project.0
\project.1
\project.2
. . . and so on.
But what are you gonna do? rolls eyes, kicks computer
Thanks for the help, anywho.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm dinking around with Dev 4.9.9.2 on XP and am having problems with the compiler (I think). Specifically, when I try to re-compile code, I get an error message saying something about a "resource error". And when I try to manually delete the .exe files, Windows claims that my access is denied.
Here is my compiler log:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Projects\Learning\Hello World\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Projects\Learning\Hello World\Makefile.win" all
g++.exe -c "Hello World.cpp" -o "Hello World.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"
windres.exe -i Hello_World_private.rc --input-format=rc -o Hello_World_private.res -O coff
windres.exe: no resources
make.exe: *** [Hello_World_private.res] Error 1
Execution terminated
>> But what are you gonna do?
1) Make sure you do "Press any key to continue" at the end of your program execution before attempting a re-compile. If the executable is running it is protected from being over written by a recompile.
2) Use Task Manager (Ctrl-Alt-Del) to determine if the Hello_World.exe process still exists. If it does terminate it before recompiling. Or if its windows is still visible, just terminate it with the X button on the title bar.
Is it possible that "about fifty percent of the time" you forget to let your program terminate?
Clifford
Tom,
"Specifically, when I try to re-compile code, I get an error message saying something about a "resource error". And when I try to manually delete the .exe files, Windows claims that my access is denied."
The access issue suggest to me that the executable is still running. Did you stop it after your last run?
Clever name by the way, I like it.
Wayne
Is this a GUI application? If not it should not normally be trying to compile resource files in any case. Check in Project->Project options->General that you have the correct project type selected.
Don't put your projects here: "C:\Dev-Cpp\Projects\". There is an apparent bug in Dev-C++ that sometimes causes it to fail in peculiar ways when projects are built in sub folders of c:\dev-cpp.
Don't put anything in "Hello World", or any other folder containing spaces in its name, there are issues in the tool chain that sometimes cause problems with such paths.
Fix all three of the above even if just one seems to solve the problem.
Clifford
First, thanks for the help. I really appreciate it.
Second . . . it's still giving me problems. I fixed everything Clifford suggested and checked Task Manager to see if instances were still running. I tried exiting out of command prompt by clicking the little 'x' instead of just 'hitting enter to continue . . . ' Interestingly, if I close the window that way, it doesn't give me an error when I re-compile, but it just won't run. And if I try to manually run it, I get the "You may not have the appropriate permissions to access the item" error.
"Clever name by the way, I like it."
Thanks :D
>> I fixed everything Clifford suggested ...
Now then post a new log from a "Rebuild All" and post the associated code. That way we can verify that all the suggested fixes were successfully applied and see if there is an issue with the code.
Your original log showed it failing to build, now you are suggesting that you can run the code, so the problem is now a different problem, and new information is required.
Clifford
Righty-o. Here's my code (for a console application):
include <cstdlib>
include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout << "Hello World" << endl;
}
And here's my compile log:
Compiler: Default compiler
Building Makefile: "C:\mycfiles\Hello_World\Makefile.win"
Executing make clean
rm -f main.o Hello_World.exe
rm: Hello_World.exe: Permission denied
make.exe: *** [clean] Error 1
Execution terminated
"The access issue suggest to me that the executable is still running. Did you stop it after your last run?"
I think Wayne is right - when I restart my computer and compile, there are no problems. It's when I try to re-compile that I get the error messages. I looked through task manager again and I'm still not finding any instances of my program . . . am I missing something?
Sorry to keep on, but can you post a successful "Rebuild All" log just after you have re-booted? It might just help.
I'm sorry, you guys were helping me and then I just disappeared. I kind of fixed my problem, after getting frustrated and giving up. I'm pretty sure that's what made America great, right?
Anyway, I have no idea what caused it, but I made sure to put all my files in C:\mycfiles, and put no spaces in the file/folder names. Now, about fifty percent of the time, everything works fine.
And if I just copy/paste my work into a new project, I can get it to re-compile.
Unfortunately, my directory looks like this now:
C:\mycfiles\project\project.0
\project.1
\project.2
. . . and so on.
But what are you gonna do? rolls eyes, kicks computer
Thanks for the help, anywho.