Dev c++ 4.9.9.2 is installed on my windows 8.1. Warning: "Source file not compiled"

1.3k views Asked by At

This is my hello world program. It compiles, but when I Run it says :

"Source file not compiled"

I have included header files stdio.h and conio.h. Any solution.? I installed code::blocks as well, I got a similar error in that IDE as well.

int main()
{
   printf("Hello world");
   return 0;
}

As it compiles, it is generating an exe file, which is not showing up in command prompt, it is somehow getting deleted(may be McAfee is doing it)

2

There are 2 answers

1
dikshant gangawat On

Specify path into the path variable...u can get your path variable into control panel ...if ur file successfully compiled ...means there is no error ..OK ...then if u run ur program then ur CPP file path should be set into path variable same like as java..

1
dikshant gangawat On

Are you making a C or C++ program? Include a header file that references iostream also.