Thread: I can't get this new compiler to work.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2006
    Location
    USA::Colorado
    Posts
    155
    Well, the problem is apparent.

    You're missing a very important element with programming:

    Code:
    int main(int argc, char *argv[])
    {
      return 0;
    }
    You're missing the
    Code:
    #include <iostream>
    
    using namespace std;
    **Put this just before your [main(int argc...)] statement

    like
    Code:
    #include <iostream>
    
    using namespace std;
    
    int main(int argc, char *argv[])
    {
      return 0;
    }

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by guitarist809
    Well, the problem is apparent.

    You're missing a very important element with programming:
    Why would you need <iostream> to run an empty main? That's not his problem. Also, it's worth assuming that he might have just ommitted the standard includes from his example.
    Sent from my iPadŽ

  3. #3
    Registered User
    Join Date
    Mar 2006
    Location
    USA::Colorado
    Posts
    155
    yea, but I use the same complier as he, DEV-C++ the MinGW C++ Compliler. Everything works fine!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why don't the tutorials on this site work on my computer?
    By jsrig88 in forum C++ Programming
    Replies: 3
    Last Post: 05-15-2006, 10:39 PM
  2. Dev C++ Compiler, Indentation?
    By Zeusbwr in forum C++ Programming
    Replies: 3
    Last Post: 10-21-2004, 06:13 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. The DJGPP compiler won't start
    By Zahl in forum Tech Board
    Replies: 9
    Last Post: 11-20-2002, 10:54 PM
  5. Help with Borland c++ compiler!!!
    By Unregistered in forum C++ Programming
    Replies: 8
    Last Post: 11-27-2001, 10:53 PM