Thread: Problems with Dev-C++ compiler, "HELP"

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    1

    Unhappy Problems with Dev-C++ compiler, "HELP"

    "HELP PLEASE" I down loaded Dev-C++ 4.9.9.2 on my laptop and I wanted to test the program by by cutting and pasting the "hello world" loop program in C. on to dev-C++ program:
    Code:
     
    #include <stdio.h>
    
    main()
    {
      for(;;)
          { 
              printf ("Hello World!\n");
          }
          system("pause");
          return 0;
    }
    I click on compile and the compiler box pops up for about 2 seconds then goes away, I then click on run and it says "Program is not compiled"
    Is there a library file I need to download or what?????? PLEASE HELP!!!!!!!!!!!!!!

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You may want to either set the option to "build before run" (I presume that dev-c++ has such an option), or use the "build" option. Compile only compiles the source code into an object file, but the object file needs to be linked to an executable file before you can run it.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    This code is bad due to implicit main.
    I also suggest you get another IDE because Dev-C++ is outdated, buggy and creates horrible indentation.
    http://cpwiki.sourceforge.net/Implicit_main
    http://cpwiki.sf.net/IDE
    My recommendation of an IDE + compiler + debugger is Visual Studio.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Hacker MeTh0Dz's Avatar
    Join Date
    Oct 2008
    Posts
    111
    Or just go with ViM (On *nix) or SciTE (On Windows) and use the gcc suite.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Problems w/ Dev C++
    By Callith in forum Tech Board
    Replies: 8
    Last Post: 11-26-2004, 06:30 AM
  3. lcc win32 compiler download problems
    By GanglyLamb in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 08-01-2004, 07:39 PM
  4. Dev c++ header problems!!
    By MelaOS in forum C++ Programming
    Replies: 3
    Last Post: 01-03-2004, 07:21 AM
  5. My Dev compiler won't compile
    By Unregistered in forum C++ Programming
    Replies: 22
    Last Post: 05-04-2002, 06:37 PM