User forums > Help

A problem when trying to build a project

(1/1)

YodaCoder:
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.
--- End quote ---

This is the code I'm using:


--- Code: ---/*
 * Hello World Example
 */


  #Include <iostream>

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

  }
--- End code ---

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.

stahta01:
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

YodaCoder:
Ah, I didn't know it wasn't a compiler. Should have checked the info more carefully, lol. Thanks! I'll find one.

Jenna:

--- Quote from: 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.

--- End quote ---

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 !

Navigation

[0] Message Index

Go to full version