I created a new blank win32 C++ project in Visual Studio 2010. I inputted the following code:
#include <cstdlib>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
cout << "hi" << endl;
}
I get this error upon compilation: external symbol not resolved.
Any thoughts on why this might be? I’ve tried including other headers such as stdio.h to no avail. Thank you!
You need WinMain for Win32 projects: