Thread: Beginner question: Error with the compiler

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    2

    Beginner question: Error with the compiler

    I've learned html, css, some of java, and bits and pieces of other languages, and now I think its time to learn C++ because I can do a lot more with it then any other language. Well I took the first step to download the code blocks compiler suggested by this site.

    I did everything that the tutorial told me to, and then when it came to run the practice program by hitting f9, this message came up:

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

    Anything I can do about that?
    Thanks,
    D3

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Did you download the version of Code::Blocks with the mingw compiler? If not, you should do so.
    It sounds like you haven't installed and configured a compiler with the IDE.
    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.

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    The compiler's directory may not have been set for some reason. Try recompiling
    Devoted my life to programming...

  4. #4
    Registered User
    Join Date
    Jul 2010
    Posts
    2
    Ahhh thank you I figured it out. I just had to reset all the defaults... and now it works!

  5. #5
    Registered User
    Join Date
    Nov 2010
    Posts
    1
    Quote Originally Posted by d3lilley View Post
    Ahhh thank you I figured it out. I just had to reset all the defaults... and now it works!
    How did you reset all to the defaults?

    Please, help me.
    Cause I have the same situation with first start of the Compiler.

  6. #6
    Registered User MrMatt027's Avatar
    Join Date
    Nov 2010
    Location
    USA, Florida
    Posts
    21
    Quote Originally Posted by andrka View Post
    How did you reset all to the defaults?

    Please, help me.
    Cause I have the same situation with first start of the Compiler.
    Try to locate your (Settings), then go to (Compiler and Debugger...), then find (Reset Defaults). I'm using CodeBlocks, but I figure it's the same with most compilers, you just need to keep looking.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner C Question Help
    By pmacdonald in forum C Programming
    Replies: 32
    Last Post: 06-22-2011, 09:32 PM
  2. Beginner Question about Pointers in C
    By lucidrave in forum C Programming
    Replies: 2
    Last Post: 08-01-2009, 03:15 PM
  3. question about a compiler warning
    By sashaKap in forum C Programming
    Replies: 4
    Last Post: 03-17-2009, 09:47 AM
  4. New to C, small compiler question
    By Ash1981 in forum C Programming
    Replies: 14
    Last Post: 12-31-2005, 02:16 AM
  5. gcc compiler question
    By s_ny33 in forum C Programming
    Replies: 6
    Last Post: 10-18-2005, 07:13 AM