Menu

unable to run Hello, World

2008-12-21
2012-09-26
  • varun chadha

    varun chadha - 2008-12-21

    i am using windows vista Home Basic and just downloaded the Dev C++ 4.9.9.2.
    i am unable to run this program

    include<stdio.h>

    int main(void)
    {
    printf("Hello, World");
    return 0;
    }

    my compile log is:
    Compiler: Default compiler
    C:\Dev-Cpp\bin\cprog\test1.c
    Compiling
    Done.

    but on running it gives
    warning: source file not compiled.

    my source code is at: C:\Dev-Cpp\bin\cprog

     
    • S. Thomas Bradley

      Hi Everyone,

      I don't know how much help I can give you, I am using Windows XP instead of Vista.

      So I can't really help you, however, I do know that there are some issues with installing Dev-Cpp on a Vista computer. If you have not done so already, switch from this forum (dev-cpp-users) to the Bloodshed software forum. Find the read-me called "PLEASE READ BEFORE POSTING A QUESTION" and in that post are instructions for installing Dev-Cpp on a Vista computer. If that doesn't solve your problems then repost your problem on that forum as it is continually monitored. This one is only monitored occassionally.

      See Ya
      Butch

       
    • Nick Chang

      Nick Chang - 2009-01-31

      Maybe you should try making a New project, select the "Console Applicaiton", and add the source file to the project?

       
    • Lance Foss

      Lance Foss - 2009-06-18

      The program below, Hello.cpp ,is from the Dev-C++ Version 4.9.9.2 Examples, and it does work.

      In windows XP I find that my source code does not have to be in a subfolder of ..\Dev-Cpp

      • BUT in Windows Vista, I find that the source code MUST be in a subfolder of ..\Dev-Cpp ie. it works in XP and not in Vista

      As a good practice, I suggest you make a folder that is not in the ..Dev-Cpp\bin file for your source code; I suggest you make up another one yourself as a subfolder of ..\Dev-Cpp

      Hello.cpp

      include <iostream>

      using namespace std;

      int main (int argc, char *argv[])
      {
      char quit;

      quit = '\0';
      while (quit != 'q')
      {
          cout &lt;&lt; &quot;Hello ! This is a console app.&quot; &lt;&lt; endl;
          cout &lt;&lt; &quot;To create a console, go to Project Options and select&quot; &lt;&lt; endl;
          cout &lt;&lt; &quot;\'Win32 Console\'.&quot; &lt;&lt; endl;
          cout &lt;&lt; &quot;Press q to quit &quot; &lt;&lt; endl;
          cin &gt;&gt; quit;
      }
      
      return 0;
      

      }

       
  • laxman varada

    laxman varada - 2010-08-16

    hi,

    using windows vista Home Basic and just downloaded the Dev C++ 4.9.9.2.

    i am unable to run this program, how can i run this programme, pl answer to
    me.

    thanks in advance

    regards,
    phe9oxis,
    http://www.guidebuddha.com

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.