I have been trying for several hours now to link allegro 4.4 with visual studio 2010. I am using microsoft visual C++ 2010 express edition. Here is what I did:
I downloaded the windows binaries from http://www.allegro.cc/files/?v=4.4 (I downloaded the MSVC 2010 one)
I extracted the three folders in the zip archive to the following location "C:\allegro"
I launched MSVC and created a new windows console application
I created a main.cpp file
In the project properties I went to VC++ directories and set Include Directories to "C:\allegro\include"
In VC++ directories I set Library Directories to "C:\allegro\lib"
In Linker->Input I added "allegro-4.4.2-md.lib" to the additional dependencies.
In Configuration Properties->Debugging I set 'enviorment' to "PATH=c:\allegro\bin;%PATH%"
I applied all the changes and entered this simple program into main.cpp
#include <allegro.h> int main() { return 0; } END_OF_MAIN();
When I tried to debug it I got two errors
Error 1 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
andError 2 error LNK1120: 1 unresolved externals
I've been pulling my hair out in frustration! Can someone please help me out or point me in the right direction?