Thread: Hi All - Newbie

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    3

    Unhappy Hi All - Newbie

    Hi Everyone,

    I have decided to take my first steps into the world of programming with C, but can't even get my compiler to work!!

    Have downloaded code blocks which seemed like a relatively simple and easy compiler to configure, as the wizard did everything, but when I try to run the following program:

    insert
    Code:
    
    
    Code:
    #include <stdio.h>
    main()
    {
        printf("Hello world!\n");
        return 0;
    }


    The following appears:

    "test1 - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
    Nothing to be done.

    The compiler I chose was the Intel C/C++ Compiler, so why is it not working?
    Please please somebody help me...............

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Exactly which package did you download? Assuming that you are on Windows, the installation package that comes with MinGW should be the one to use; you then select MinGW/gcc, not Intel. Also, be careful to choose to create a C project, not C++.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    3
    The compiling options don't even mention mingw and i cannot even paste the pic up here as the message window keeps showing a blank screen when i try to paste the results of my query!!
    (pulling my hair out right now!!)



Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie with Very Newbie Question
    By Jedi_Mediator in forum C++ Programming
    Replies: 18
    Last Post: 07-01-2008, 08:00 AM
  2. SDL + Newbie
    By Livijn in forum Game Programming
    Replies: 7
    Last Post: 04-30-2007, 11:20 PM
  3. C++ newbie / linux not so newbie question
    By goldmonkey in forum C++ Programming
    Replies: 7
    Last Post: 12-13-2003, 12:27 PM
  4. newbie
    By Unregistered in forum Windows Programming
    Replies: 3
    Last Post: 05-26-2002, 01:47 PM
  5. As a newbie to C....
    By Noodle in forum C Programming
    Replies: 5
    Last Post: 05-23-2002, 11:08 AM