Problems installing Allegro

Started by
1 comment, last by DBurgener 12 years, 10 months ago
I've been trying to add the allegro library to Visual C++ 2008 express, but I keep getting the same errors:

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;
}
Advertisement
#define ALLEGRO_USE_CONSOLE before including <allegro.h>, or switch your project to a Win32 application.
This video shows you how to install Allegro with Visual.

http://www.youtube.com/user/CodingMadeEasy#p/c/BA147EB37B0D36B6/0/LS-LuKM29e8

This topic is closed to new replies.

Advertisement