• Advertisement
Sign in to follow this  

Problems installing Allegro

This topic is 2458 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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;

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement