Author Topic: A problem when trying to build a project  (Read 6355 times)

Offline YodaCoder

  • Single posting newcomer
  • *
  • Posts: 4
A problem when trying to build a project
« 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.
« Last Edit: June 10, 2009, 02:00:50 am by YodaCoder »
"Programming is the process of converting caffeine into error messages."

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7670
    • My Best Post
Re: A problem when trying to build a project
« Reply #1 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline YodaCoder

  • Single posting newcomer
  • *
  • Posts: 4
Re: A problem when trying to build a project
« Reply #2 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.
"Programming is the process of converting caffeine into error messages."

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
Re: A problem when trying to build a project
« Reply #3 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 !