Qbasicnews.com

Full Version: Allegro for Visual C++ .NET?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I install Allegro for Visual C++ .NET in XP? I'd use 'make', but it's not a recognized command by the XP command box (whatever the term is). Any help is appreciated.
You can download the MSVC library pre-compiled from http://www.allegro.cc/files/ - get the Microsoft Visual C++ 7 binaries. (I assume you want to use it with unmanaged C++ (regular Win32 programs); I don't think there's any way to use it with managed C++ (.NET Framework etc.).)
TY. I'll let you know if it works (it should, but seeing my luck...)
Hmm... I did what the readme said to do (I warned you Wink). I dragged the allegro Include files to the VC7 include directory, check. I dragged the allegro Library files to the VC7 lib directory, check. Now, when I try to run an example, I get...

A bunch of "Unresolved external symbol" errors. Why does everything have to hate XP Sad. *Sigh*
Did you try linking to the library?
As HardRock says; the problem is that you're trying to use functions in the library, but you haven't told VC++ to use the library in your project. If you go to the Project Options (I guess something like that exists... I don't use VStudio...), you should be able to specify which library to use.

It's most likely in a subdirectory called 'lib' in your Visual C++ directory and is probably called liballeg.a (maybe .lib... I'm unsure).

"Unresolved external" errors always mean that you've tried to use functions without linking the library. :-)
Well... I got it to work (Well sort of, I have yet to try it on an example that will work. The point is that it is not leaving erros). I just am a little annoyed that I have to set it up like this everytime I start a project. Oh well. :roll:
You hear a small voice behind you saying "Use Allegro with FreeBASIC... no extra linker options are needed..." as your wrath against C++ increases with every new project. :lol:
I wanted the ability to put everything into seperate files. I also wanted classes for ease of use.
Hey check your PMs mate.