Code::Blocks Forums
User forums => Help => Topic started by: beancox on April 19, 2011, 12:20:02 pm
-
hey guys.thanks for clicking and helping me.
First of all, i have to admit english is not my mother tougue.So there may be some grammar mistakes in my descrpition ,but i will try my
best to avoid them . here comes the problem.
I'm learning C, not cpp.
Today ,when i open some old files in my folder(which is absolutely right,without mistake),it can be executed first time. but when i tried the second time , the problem appears. here is the words on build log
f:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot open output file D:\Files\2-3-3-4.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
and,not a single file alone. every file is just like this .even the simplest "hellowolrd.c" can only be executed once.
in addidion ,my os is window-7 64bit. and c::b went well before .
i've googled the problem for settlement . but the methods seem quite alike. first,there isn't any process related running. second ,it isn't read-only.
i've reinstalled c::b but it doesn't work. i saw some guy sayed it's a bug. is it ?
i need your help badly
thanks in advance.
-
Are you sure the processes are not running in the background and prevent writing to the exe a second time ?
Do you have any antivirus or other so called "security"-software installed ?
This might interfere with the compiler.
-
yeah .i am sure using shift+ctrl+del there ain't the exe running .
as for security(mine is avira anti-virus) . i have make it a exception for c::b to run without problems.
i just don't know how to deal with it .
-
It's not C::B that does not work, it's either the compiler/linker of your compiler-suite or the executables you have built.
-
but i've reinstalled c::b several times
and i didn't change the settings . it is all default . how could this happen .? someone says it's a bug ,is it ?
it didn't occur last several months . but it did appear today ... OMG. :shock:
-
but i've reinstalled c::b several times
and i didn't change the settings . it is all default . how could this happen .? someone says it's a bug ,is it ?
it didn't occur last several months . but it did appear today ... OMG. :shock:
Did you change anything else on your system (updates etc.) ?
Be aware:
C::B is not a compiler or a linker, it's just an IDE !!
You get an error from your linker, not from C::B.
-
yes. recently i update .net framework4
does it have problems with compiler? my c::b is the latest version 10.05 with mingw
-
besides what confuses me is that every file can be compiler and executed for the first time without difficulty. however,when
it is executed the second ,third ,or more times , the problem above appear.
-
i've uninstalled the .net framework 4 but the problem still exists.
in despair....
-
i uninstalled the avira anti-virus.
again... it seems that it's never gonna to be solved.
-
Have you read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F ?
p.s. Does your keyboard have shift key? If it has please start to use it :)
p.p.s. The main purpose of my post is to tell you about the shift key :lol:
-
i don't think i have got all that you mean
-
Unfortunately... :?
-
yeah .i am sure using shift+ctrl+del there ain't the exe running .
This statement is NOT correct; did you use task manager to confirm no copy of your exe is running?
Tim S.
-
yeah. I check it with task manager,or more detail managers(provided by other softwares).
My project is console application ,but i am confused that when the screen displays "press any key to continue" ,and i did so ,the windows disappear. Everything just seems as natural as before,but in task manager , there is a process name " conhost " still running . I don't know if it has something to do with the problem.
My os is windows-7 64bit ultimate.
I need help badly. I don't know what to do . Without c::b ,how can I continue my study major in computer science.
-
Learn TO GOOGLE and DO NOT SEND PMs TO ME!!!!!!!!!!!!!
Learn to READ!!!!!!!
http://wiki.codeblocks.org/index.php?title=Main_Page
http://wiki.codeblocks.org/index.php?title=FAQ
http://www.codeblocks.org/user-manual
Tim S.
-
I have googled it for quite a long time.
The solutions seem quite alike but they don't do mine.
I'm sorry to bother you for send PMs ,but i just wanna solve the problem ASAP.
-
Though I changed the compiler the problem still exist . what's wrong ... any methods?
who's gonna help me out.
-
I have reboot my os. windows-7 ultimate.
in despair , it remains unsettled .
It took me a whole day to fix it ,,, but nothing paid off.
someone coming to save me ?
-
You recent posts does not supply any useful information about your bug/error.
so:
1, show us the steps by steps to produce the bug/error
2, show the full build log
Mostly, you bug/error I think is not related to C::B.
-
ld.exe: cannot open output file D:\Files\2-3-3-4.exe: Permission denied
Note: Usually the linker is always right. Did you try the most simple case: Can you create a file named 2-3-3-4.exe in D:\Files? And I really mean exactly that file name with that extension.
In addition: As you see: this is a linker error. So for the record: It cannot be an issue with C::B.
-
I came to realize that it has nothing to do with c::b
and I don't wanna give up c::b ,so I'm trying some other compilers. I cannot create or open the file 2-3-3-4.exe in D:\Files
as for full buildlog , i've posted at first . here comes the full build-log again.
Compiling: D:\Files\2-3-2-2.c
Linking console executable: D:\Files\2-3-2-2.exe
f:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot open output file D:\Files\2-3-2-2.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
That's exactly full of the buildlog.
-
who can give me address of somewhat compilers other than mingw, I search for a long time but in vain.
-
If this error occurs, can you delete the exe-file manually ?
If not the exe is still running.
You can also try to compile a project below your user-folder on drive c: .
-
No, i cannot delete the exe.
It's the last hope
i will try it in project no longer in files alone.
-
No, i cannot delete the exe.
It's the last hope
i will try it in project no longer in files alone.
If you can not delete the exe, it usually means it's still running.
-
but there isn't any processes running in task manager. how can i make further step.
-
The file is locked, you can try unlocker (http://www.emptyloop.com/unlocker/) to unlock it.
-
thanks . I will try it .
-
unfortunately, unlocker doesn't make it . the unlocker says nothing locks the file but still i cannot open or delete it .
-
unfortunately, unlocker doesn't make it . the unlocker says nothing locks the file but still i cannot open or delete it .
too bad news.
So, you can create a new project, and copy the source file, and build the project again.
BTW: you need to post the "full" build log, not the simplified build log. see the wiki
2.14 Q: How do I troubleshoot an compiler problem? (http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F)
-
thanks , i will follow your methods to try again..
-
fail again ... over and over again. here is the buildlog
-------------- Build: Debug in test123 ---------------
mingw32-g++.exe -LG:\MingW\mingw32\bin -o bin\Debug\test123.exe obj\Debug\main.o
f:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot open output file bin\Debug\test123.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
-
Look, if you cannot delete this file there is NO WAY the compiler / linker can do. If you find out how to delete it yourself (e.g. by correcting the file system's directory/file permissions) you are done.
You need to use / setup a folder with full write access to work in - and you don't need C::B for that.
And please don't ask here as this is definitely not a C::B issue, but an issue with the file access permissions.
-
I want some more details about how to use another compiler even I made some attempts . but after my settings are over, and I click build and run , nothing gonna happen .
-
You have to install another compiler. C::B only ships with MinGW (or nothing).
It's up to you to find a supported compiler.
See the list in the settings, find a place to download the compiler you want and set it up.
But without fixing your problem, you will still not be able to do anything.
If you can not delete (or overwrite) the file manually, another compiler can't do it also.
But to fix this problem, you are in the wrong place.
Search the web for this error or find a forum that supports windows 7 problems.
-
thanks for your guys timely help.
i'm gonna be with c:b till the last second .
-
I'm back. I've rebooted my os and used some of the updates provided by MS. It's OK till now . hope it will be like what it is now .
-
I've seen Spybot S&D do this.
I've also seen Indexing services do this too.
-
yep.
Some anti-virus software say that c::b's cb_console_runner.exe is virus ,though it is not .
maybe some updates provided by MS are in the same way and forbid cb_console_runner.exe to execute when changes i
in files(projects) take place.
As for indexing services , I have no idea about it .