Error 1 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup MSVCRTD.lib
Error 2 fatal error LNK1120: 1 unresolved externals C:\Users\Owner\Documents\Visual Studio 2008\Projects\allegro_test\Debug\allegro_test.exe
And here is my code:
#include <iostream>
#include <allegro.h>
#pragma comment(lib, "alleg.lib")
using namespace std;
int main( void )
{
int a;
cout << "Allegro is included with no errors" ;
cin >> a;
return 0;
}