I get lots of compile errors about conflicting types for "struct BITMAP"!

Description

I get lots of compile errors about conflicting types for "struct BITMAP"!
If your program directly includes Win32 API header files, see the "Windows specifics" section of the documentation.

If your program only includes header files of the C++ standard library, you're very likely trying to compile it with gcc 3.x for MinGW; if so, define the symbol __GTHREAD_HIDE_WIN32API on the compiler command line:

         g++ -D__GTHREAD_HIDE_WIN32API program.cpp -lalleg