Jump to content
  • Advertisement
Sign in to follow this  
Vegetable411

Can't seem to install Allegro

This topic is 4680 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

First off I downloaded a build of Allegro for Dev-C++ off a website, and that worked fine except for a few simple commands, which I think I would need. Then I downloaded Allegro off of Devpak.org through Dev-C++'s update, but when I tried to compile, I got linker errors. So then I downloaded Allegro off of Allegro.cc for Visual C++ 6, but I got linker errors with that too. Is there something I'm missing?

Share this post


Link to post
Share on other sites
Advertisement
Hmmm, post here what those linker errors tell about.

Quote:

Is there something I'm missing?


Probably Allegro needs to be linked with some other libraries...?

Share this post


Link to post
Share on other sites
Here are the errors I got from Visual C++ 6:

--------------------Configuration: hello - Win32 Debug--------------------
Linking...
hello.obj : error LNK2001: unresolved external symbol __imp__allegro_message
hello.obj : error LNK2001: unresolved external symbol __imp__install_allegro
hello.obj : error LNK2001: unresolved external symbol __imp___WinMain
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/hello.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.

hello.exe - 5 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites
Ohh, so you're not compiling Allegro, but are compiling program that uses this lib. That changes everything :-)

Check this out: http://www.allegro.cc/go/http:/alleg.sourceforge.net/faq.html


EDIT: that FAQ tells what to do with missing _main symbol. Other errors probably are caused by that you're not linking to alleg.a (or alleg.lib or sth like that).

[Edited by - Koshmaar on August 1, 2005 5:21:50 PM]

Share this post


Link to post
Share on other sites
Ah. I know what the problem with MSVC was. I didn't uncomment out the lines for Static Linking. Thanks for the help.

Edit: Now I'm getting the same problem as before:

--------------------Configuration: Allegro - Win32 Release--------------------
Compiling...
hello.cpp
F:\Program Files\Microsoft Visual Studio\MyProjects\Allegro\hello.cpp(427) : error C2065: 'textprintf_ex' : undeclared identifier
Error executing cl.exe.

hello.obj - 1 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites
textprintf_ex isn't a 4.0.X function; it was introduced in the 4.1.X (WIP) series. You'll need to either use 4.2 (Beta) or replace textprintf_ex with textprintf.

Share this post


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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!