News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

I need help real badly.

Started by beancox, April 19, 2011, 12:20:02 PM

Previous topic - Next topic

beancox

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.

Jenna

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.

beancox

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 .

Jenna

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.

beancox

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:

Jenna

Quote from: beancox on April 19, 2011, 02:07:50 PM
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.

beancox

yes.   recently i update .net framework4
does it have problems with compiler?  my c::b is the latest version 10.05 with mingw

beancox

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
.

beancox

i've uninstalled the .net framework 4     but the problem still exists.
in despair....

beancox

i uninstalled the avira anti-virus. 
again...   it seems that it's never gonna to be solved.

oBFusCATed

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:
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

beancox

i don't think i have got all that you mean

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

stahta01

Quote from: beancox on April 19, 2011, 01:50:27 PM
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

beancox

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.