Author Topic: Help with Basic Compiling  (Read 2378 times)

Aussiekid

  • Guest
Help with Basic Compiling
« on: February 21, 2010, 04:09:52 am »
Ok, After installing Code Blocks and the GNU GCC Compiler I get this error

Code
-------------- Build: Debug in SayHello ---------------

Compiling: main.cpp
Execution of 'mingw32-g++.exe -Wall -fexceptions  -g     -c C:\Users\Michael\Desktop\MyProjects\SayHello\main.cpp -o obj\Debug\main.o' in 'C:\Users\Michael\Desktop\MyProjects\SayHello' failed.
Nothing to be done.

while trying to run this code
Code
#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

Can anyone help?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Help with Basic Compiling
« Reply #1 on: February 21, 2010, 10:01:21 am »
You obviously did not search the forum and the web, that violates our for um rules !!

You did not provide any information about your setup, that's another violation of our rules !

Why are people unable to give basic information like C::B-version (probably build-date), OS and version and compiler and version ?

The only thing I can see is, that you are on windows, but there are many version of that "OS" out there, and there might be incompatibilities with MinGW, especially on vista and win7, so some more information is needed, but first make sure your compiler is configured correctly.