Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: 3DModelerMan on November 27, 2008, 05:12:11 pm

Title: problem compiling with mingw
Post by: 3DModelerMan on November 27, 2008, 05:12:11 pm
I get these errors when I change something in my code
Code
Linking console executable: data\Debug\bin\Main_game.exe
C:\Program Files\CodeBlocks\MinGW\bin\ld.exe: cannot open output file data\Debug\bin\Main_game.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
what do these mean?.
Title: Re: problem compiling with mingw
Post by: 3DModelerMan on November 27, 2008, 05:23:38 pm
Here's a quick update, so far it only does this in debug mode.
Title: Re: problem compiling with mingw
Post by: jens on November 27, 2008, 05:24:30 pm
If it has worked before it most likely means that an instance of your exe is still running.
Open the taskmanager and kill it.
Title: Re: problem compiling with mingw
Post by: 3DModelerMan on November 27, 2008, 07:59:18 pm
Really?. I did'nt see it in the windows bar.
Title: Re: problem compiling with mingw
Post by: jens on November 27, 2008, 08:23:28 pm
Really?. I did'nt see it in the windows bar.
That's why I wrote
Quote
Open the taskmanager and kill it.

There could of course be other reasons, like no write permission, but that should not happen accidently.

You can try to delete the exe-file manually, if windows says another process is using it, it's most likely that the process is still running.
Title: Re: problem compiling with mingw
Post by: 3DModelerMan on November 28, 2008, 04:42:26 pm
Alright you were right, that's what it was. I need to change up my cleanup when the exit button is selected.