Hello,
I wrote a very simple "hello world!" code test.cpp. After first compile action, I run the test.exe produced and everything works fine. Then I modify the "hello world!" in "hello moon!" but when I try to compile the code again, the test.exe is locked (permission denied and access right problem) so ld is not able to overwrite the test.exe. If I try to launch the test.exe manually, it give me, of course, the same problem. I have to rename test.cpp into test1.cpp file to go on producing a test1.cpp. After a first good run, the problem happens again.
I'm working under XP with the version 4.9.9.2 of dev. Could you help me?
Camelot
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Most of the time that I have seen this, it has been the result of not shutting
down the executable after it has been run. A running executable can not be compiled over.
So,
(1) Please copy and paste the code you are compiling and running
and
(2) Tell us exactly what you are doing after the program finishes, and exactly what happens.
Remember, we are not looking over your shoulder, so you need to tell us as much as possible
about what you see and do - don't overlook details like whether the display window closes.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) You have not closed teh earlier running program
2) Some other problem we never got to teh bottom of.
With respect to (2) some have suggested that it is caused by Spybot S&D's 'teatimer' feature, but it is I suppose possible that some other security application is causing the same problem.
I think the last guy that had this problem I suggested he used an alternative tool and got some work done.
I would suggest that you try using a project rather than building the source directly from the editor. Not because it will necessarily fix your problem, but because it is just a good idea in any case. You can of course change the output file name when using a project.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I wrote a very simple "hello world!" code test.cpp. After first compile action, I run the test.exe produced and everything works fine. Then I modify the "hello world!" in "hello moon!" but when I try to compile the code again, the test.exe is locked (permission denied and access right problem) so ld is not able to overwrite the test.exe. If I try to launch the test.exe manually, it give me, of course, the same problem. I have to rename test.cpp into test1.cpp file to go on producing a test1.cpp. After a first good run, the problem happens again.
I'm working under XP with the version 4.9.9.2 of dev. Could you help me?
Camelot
Thank you cpns,
you were perfectly right! Ii was Spybot-SD.
Now I solved the problem. Thank you.
Camelot
Most of the time that I have seen this, it has been the result of not shutting
down the executable after it has been run. A running executable can not be compiled over.
So,
(1) Please copy and paste the code you are compiling and running
and
(2) Tell us exactly what you are doing after the program finishes, and exactly what happens.
Remember, we are not looking over your shoulder, so you need to tell us as much as possible
about what you see and do - don't overlook details like whether the display window closes.
Wayne
This is caused by one of two problems:
1) You have not closed teh earlier running program
2) Some other problem we never got to teh bottom of.
With respect to (2) some have suggested that it is caused by Spybot S&D's 'teatimer' feature, but it is I suppose possible that some other security application is causing the same problem.
I think the last guy that had this problem I suggested he used an alternative tool and got some work done.
I would suggest that you try using a project rather than building the source directly from the editor. Not because it will necessarily fix your problem, but because it is just a good idea in any case. You can of course change the output file name when using a project.
Clifford