Author Topic: I need help real badly.  (Read 21290 times)

Offline beancox

  • Multiple posting newcomer
  • *
  • Posts: 28
I need help real badly.
« 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: I need help real badly.
« Reply #1 on: April 19, 2011, 01:30:21 pm »
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.

Offline beancox

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: I need help real badly.
« Reply #2 on: April 19, 2011, 01:50:27 pm »
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 .

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: I need help real badly.
« Reply #3 on: April 19, 2011, 01:57:09 pm »
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.

Offline beancox

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: I need help real badly.
« Reply #4 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:

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: I need help real badly.
« Reply #5 on: April 19, 2011, 02:14:35 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.

Offline beancox

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: I need help real badly.
« Reply #6 on: April 19, 2011, 02:24:50 pm »
yes.   recently i update .net framework4
does it have problems with compiler?  my c::b is the latest version 10.05 with mingw

Offline beancox

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: I need help real badly.
« Reply #7 on: April 19, 2011, 02:29:15 pm »
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
.

Offline beancox

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: I need help real badly.
« Reply #8 on: April 19, 2011, 02:48:15 pm »
i've uninstalled the .net framework 4     but the problem still exists.
in despair....

Offline beancox

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: I need help real badly.
« Reply #9 on: April 19, 2011, 04:08:16 pm »
i uninstalled the avira anti-virus. 
again...   it seems that it's never gonna to be solved.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: I need help real badly.
« Reply #10 on: April 19, 2011, 04:20:09 pm »
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!]

Offline beancox

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: I need help real badly.
« Reply #11 on: April 19, 2011, 04:29:17 pm »
i don't think i have got all that you mean

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: I need help real badly.
« Reply #12 on: April 19, 2011, 04:41:45 pm »
Unfortunately...  :?
(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!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: I need help real badly.
« Reply #13 on: April 19, 2011, 07:59:52 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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline beancox

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: I need help real badly.
« Reply #14 on: April 20, 2011, 12:54:20 am »
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.