Jump to content
  • Advertisement
Sign in to follow this  
Giratina493

Problems installing Allegro

This topic is 2606 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!