i went to tools>options>projects & solutions> vc++ directories> show directories for: library files> added the directory to the lib inside the AllegroFORVCPP9 file that i downloaded here> http://www.allegro.cc/files/
i did the same for the include files.
I put in this code:
1 2 3 4 5 6 7 8 9 10 11 12 13
#include "stdafx.h"
#include <allegro.h>
int _tmain(int argc, _TCHAR* argv[])
{
allegro_init(); // Initialize Allegro
install_keyboard(); // Initialize keyboard routines
set_gfx_mode(GFX_AUTODETECT, 640,480,0,0); // Change our graphics mode to 640x480
readkey();// Wait untill a key is pressed
return 0;
}
END_OF_MAIN()
I got this error report
1 2 3 4 5 6 7 8
Compiling...
stdafx.cpp
Compiling...
projectafaff.cpp
c:\documents and settings\adrian\mis documentos\visual studio 2008\projects\projectafaff\projectafaff\projectafaff.cpp(16) : error C2065: '_mangled_main' : undeclared identifier
Build log was saved at "file://c:\Documents and Settings\Adrian\Mis documentos\Visual Studio 2008\Projects\projectafaff\projectafaff\Debug\BuildLog.htm"
projectafaff - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Code changed a little:
1. the include statements both use quotations
2. i use a standard main since End_Of_Main defines a mangled main (see link provided)