Author Topic: problem compiling with mingw  (Read 5966 times)

Offline 3DModelerMan

  • Multiple posting newcomer
  • *
  • Posts: 21
problem compiling with mingw
« 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?.

Offline 3DModelerMan

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: problem compiling with mingw
« Reply #1 on: November 27, 2008, 05:23:38 pm »
Here's a quick update, so far it only does this in debug mode.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
Re: problem compiling with mingw
« Reply #2 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.

Offline 3DModelerMan

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: problem compiling with mingw
« Reply #3 on: November 27, 2008, 07:59:18 pm »
Really?. I did'nt see it in the windows bar.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
Re: problem compiling with mingw
« Reply #4 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.

Offline 3DModelerMan

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: problem compiling with mingw
« Reply #5 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.