Hello World Problem

CharlyZA (5)
Hey guys, I'm having a problem with running hello world
1
2
3
4
5
#include <iostream>
using namespace std;
void main()
{
  cout << "Hello World!" << endl;   cout << "Welcome to C++ Programming" << endl; }

3 11 C:\Users\admin\Documents\game projects\hello world\main.cpp [Error] '::main' must return 'int'
Computergeek01 (2873)
It tells you right there in the error, Line 3 should be int main()
CharlyZA (5)
Thanks, now it says "Couldn't create process" and the full directory.
Computergeek01 (2873)
Would you mind copy + pasting the entire error?
CharlyZA (5)
http://i1194.photobucket.com/albums/aa363/charly-man/error.png
Could it be because I have 32 bit?
Last edited on
Computergeek01 (2873)
Yes, you cannot run a 64-bit application on a 32-bit platform although it works fine the other way around.
CharlyZA (5)
So should I upgrade my PC?
Computergeek01 (2873)
Or you could download the 32-bit version of mingw...
Ogoyant (48)
Recompile with the 32-bit version of MinGW.
Registered users can post here. Sign in or register to post.