![]() |
|
Compiling program with MinGW-2.0.0 + Allegro-4.1.1-static |
Daniel Schlyder
Member #257
April 2000
![]() |
Having just upgraded MinGW to 2.0.0-2, I'm having problems compiling one of my games. The game compiled fine with static Allegro 4.1.1 when I used MinGW-1.1, but now it fails with the following output: Quote:
E:\code\Wormlings>make In file included from C:/mingw/include/windows.h:51, BITMAP' `BITMAP*(*)(const char*, RGB*)' Since I'm not using any Windows functions directly in my code (only including standard C++ headers), I thought including allegro.h would be enough. Even so, I tried adding winalleg.h after allegro.h, but I still get the errors. All Allegro examples compile fine, but they're C, not C++, so maybe that's the problem? I really have no idea what to do. Please help! |
Bob
Free Market Evangelist
September 2000
![]() |
I sent an email to the conductors list. What's surprising though is that <string> also includes <windows.h>! This of course messes up Allegro. -- |
Daniel Schlyder
Member #257
April 2000
![]() |
I managed to compile the program by adding a file myallegro.h: #ifndef MYALLEGRO_H #define MYALLEGRO_H #include <allegro.h> #include <winalleg.h> #endif // MYALLEGRO_H and including this first in any file using Allegro. However, when I run the program it immediately crashes. I guess that could be unrelated, though. [edit]The crash was caused by jpgalleg load_jpg()[/edit] |
|