Code::Blocks Forums

User forums => Help => Topic started by: YodaCoder on June 10, 2009, 01:58:48 am

Title: A problem when trying to build a project
Post by: YodaCoder on June 10, 2009, 01:58:48 am
Hello all,

I've encountered a problem when trying to build a project so that it will compile. I downloaded Code::Blocks earlier today so that I could start learning C++ (so far I know next to nothing about the language, but I hope to get better!), so I'm not sure if I need anything else. I also don't know if the code is just faulty or not (I don't think it is...I copied it from somewhere, but you never can be too sure). The error message I'm getting says this:

Quote
"HelloWorldApp - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping...
Nothing to be done.

This is the code I'm using:

Code
/*
 * Hello World Example
 */


  #Include <iostream>

  int main(void)
  {
      std::cout << "Hello World!" << std::endl;
      return 0;

  }

Like I said, I really don't know much about this language yet. I just found a few sites that I hope will help me though, so I should know more soon!

I'm running Windows XP by the way.
Title: Re: A problem when trying to build a project
Post by: stahta01 on June 10, 2009, 02:21:39 am
1. Install a C++ or C Compiler; Code::Blocks is NOT an Compiler.
2. Configure Code::Blocks to use the Installed Compiler.
3. Set Installed Compiler as your default compiler.

Tim S
Title: Re: A problem when trying to build a project
Post by: YodaCoder on June 10, 2009, 03:23:16 am
Ah, I didn't know it wasn't a compiler. Should have checked the info more carefully, lol. Thanks! I'll find one.
Title: Re: A problem when trying to build a project
Post by: Jenna on June 10, 2009, 06:41:51 am
Ah, I didn't know it wasn't a compiler. Should have checked the info more carefully, lol. Thanks! I'll find one.

And please, please search the forum, before asking questions, that have been asked tons of times before.

Such topics normally get locked, with or without a hint or even silently removed !