Compile and run with codeblocks

closed account (SEbXoG1T)
I'm using code:blocks on Ubuntu 11.10, and when i try to run this program, I get this error.
1
2
3
4
5
6
7
8
9
10

#include <iostream>
using namespace std;

int main ()
{
  cout << "Hello World!";
  cin.ignore();
  return 0;
}

http://imgur.com/2wN0D
Last edited on
There's something wrong with the codeblocks configuration. It's running the "raw" file, and not the compiler. Check in your options if the "c++ compiler" is set. It should be set as "gcc".
closed account (SEbXoG1T)
How do i do that? Sorry, complete noob.
I'm sorry i can't help you further into this task. I'm not on my Ubuntu PC right now, so i can't check the equality of the options. It should be anyways somewhere around Options/Compiler or something like that. There should be a page with many Edit Boxes put in vertical, like:
C++ Compiler: [EDITBOX]
C Compiler: [EDITBOX]
Something Else: [EDITBOX]
Something Else Again: [EDITBOX]
closed account (SEbXoG1T)
this it? http://imgur.com/kssCy
Not exactly, there should be another window like that somewhere...
EDIT: Maybe it's the "ToolChain Executables" Tab i see on the right.
Last edited on
Topic archived. No new replies allowed.