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 (2874) |
|
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 (2874) |
|
|
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?
|
|
|
| Ogoyant (153) |
|
|
Recompile with the 32-bit version of MinGW.
|
|
|
Topic archived. No new replies allowed.