0

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)

Pradeep Ch
  • 103
  • 3
  • 11

2 Answers2

0

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..

0

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

Madmenyo
  • 8,389
  • 7
  • 52
  • 99
  • I have seen some of your posts, try making proper sentences without text message slang like `U r`, instead write `You are` and stop with all the `....` a sentence stops with a single dot. The SE community likes clean and clear answers on clean and clear questions. – Madmenyo Jun 18 '15 at 17:50