What's wrong with my Dev-C++?

Started by
15 comments, last by ookooa 19 years, 8 months ago
Ok, I started a new project in C. The default code is:

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  
  system("PAUSE");	
  return 0;
}
But it didn't compile! I got message "unable to run program file". Could anybody help me with this? Thanks!
Advertisement
Is there another copy running? There is a menu item to kill it if it is, try doing that first. (I mean YOUR program, not DevC++ itself.)
No, there isn't!
Try deleting all the generated makefiles, and rebuild all?
I did so, but nothing changed. I can't understand it. Whatever program I did I know about that it worked suddenly doesn't work!
That's weird. Maybe I shoud reistall it...
Is there any compiler output to post?
There isn't any except for that I already mentioned. In a line column of compiler output is number 2. However this is output for all programs.

Compiler log:

Compiler: Default compiler
Building Makefile: "D:\Dev-Cpp\Projects\Makefile.win"
Executing make...
make.exe -f "D:\Dev-Cpp\Projects\Makefile.win" all
Execution terminated
...
make.exe -f "D:\Dev-Cpp\Projects\Makefile.win" all
Execution terminated

hmm... if it's teriminated, then it didn't build, hmmm...
Okay maybe this is a stupid question but....
Are you trying to write to a read only drive?

I accidentally left the write protection switch on on my key drive once then tried to compile something on it and got a similar warning.
The only time that ever used to happen to me, was when a copy of the .exe I was trying to compile was still running, so it couldn't overwrite it.

This topic is closed to new replies.

Advertisement