Hello World Problem

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'
It tells you right there in the error, Line 3 should be int main()
Thanks, now it says "Couldn't create process" and the full directory.
Would you mind copy + pasting the entire error?
Last edited on
Yes, you cannot run a 64-bit application on a 32-bit platform although it works fine the other way around.
So should I upgrade my PC?
Or you could download the 32-bit version of mingw...
Recompile with the 32-bit version of MinGW.
Topic archived. No new replies allowed.