|
Problem with Installing Allegro 5 with MSYS2 |
Martin Mikaelsson
Member #5,325
December 2004
|
Hi there. 1C:/devel/DXSDK/Include/xinput.h:xxx:x: error: unknown type name '__in'
2C:/devel/DXSDK/Include/xinput.h:xxx:X: error: unknown type name '__out'
3C:/devel/DXSDK/Include/xinput.h:xxx:X: error: unknown type name '__reserved'
There are many lines with this error and only in xinput.h file. How do I solve this? Do I have to modify the file to make it work? |
Thomas Fjellstrom
Member #476
June 2000
|
the mingw in msys2 includes the dx headers. You probably shouldn't use the DXSDK headers. -- |
Martin Mikaelsson
Member #5,325
December 2004
|
Ok, thanks. I have now installed the Allegro 5.1 with this guide. I have now these files in the bin folder 1C:\MinGW\msys\1.0\home\build_allegro_monolith\lib\allegro_monolith-5.1.dll
2C:\MinGW\msys\1.0\home\build_allegro_monolith\lib\liballegro_monolith.dll.a
. All the include files is in allegro path. But when I try to build a Project with Allegro I get some undefined errors in the linkers. I'm still Little tired after spending few hours to solve this. WHere shall I put the "-lallegro_monolith" flag in Code::Blocks? |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Go to Project->Options->LinkerSettings tab and set the library to be linked there. Either add it to the libraries on the left or add the flag on the right (-lallegro_monolith.dll). My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Martin Mikaelsson
Member #5,325
December 2004
|
I have tried that but I don't Think thats the problem. After I build allegro copies (Monolith both debug and Release) and even static release and debug I moved all new files in a new directory (c:\allegro5.1) because Everything where in c:\ming64\ming64 directory. It seems that all builded files goes there. Even If I do all in exactly order in the website it still give me undefined error. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Martin Mikaelsson said: it still give me undefined error. Then you're not linking to the library, or you're linking to the wrong version of the library that doesn't have that function in it. You have to build your program with the same compiler you built allegro with. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Martin Mikaelsson
Member #5,325
December 2004
|
Crap! Then I have to start over again. |
|