I downloaded Allegro for Dev-C++ from the Bloodshed site, and extracted =
it to the Dev-C++ folder. I tried to compile a simple project using =
Allegro, after adding '-lalleg' to the command-line box, but on the =
first try, it does not link and gives this message:
g++: -lalleg: linker input file unused since linking not done
However, when I press Ctrl+F9 again, it links, and a 6 kb EXE is =
produced. When I try to run it, it gives me a message saying =
'alleg40.dll not found'. I searched for this file and it was nowhere to =
be found. Also, there are a few EXEs in the Allegro directory, which =
seem to run fine without the DLL... these files are hundreds of KBs =
larger than the one I was able to produce. I also tried linking in the =
'liballeg_s' library, which I found in the 'lib/' sub-directory. It =
didn't help, the EXE size is still 6 kb. The manual says that compile =
instructions are included in 'readme.txt', which doesn't exist. I'm =
running on XP professional. The source code:
-------------------------------------------------------------------------=
-------
/* Allegro test */
#include <allegro.h>
#include <winalleg.h>
#include <windows.h>
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
allegro_init();
if(os_type =3D=3D OSTYPE_WINXP)
{
MessageBox(NULL, "XP has been detected.", "WinXP", MB_OK);
}
else
{
MessageBox(NULL, "XP was not detected.", "Error!", MB_OK | =
MB_ICONHAND);
return 1;
}
// Do stuff here
return 0;
}
-------------------------------------------------------------------------=
-------
Whattodo?
mdeth O
m.o.t.o[P.S.Y.C.H.O]=20
http://mudeth.tripod.com | ibr...@bi... | mu...@gm...
|