Having problems compiling Allegro
James Howard

Using mingw32 gcc version 3.3.1
Try to compile Allegro version 4.2.0

I get the following compiler error:

src/win/gdi.c: In function `get_dib_from_hbitmap':
src/win/gdi.c:316: error: `WINDOWS_BITMAP' undeclared (first use in this functio
n)
src/win/gdi.c:316: error: (Each undeclared identifier is reported only once
src/win/gdi.c:316: error: for each function it appears in.)
src/win/gdi.c:316: error: parse error before "bm"
src/win/gdi.c:328: error: `bm' undeclared (first use in this function)
src/win/gdi.c: In function `convert_hbitmap_to_bitmap':
src/win/gdi.c:546: error: `WINDOWS_BITMAP' undeclared (first use in this functio
n)
src/win/gdi.c:546: error: parse error before "bm"
src/win/gdi.c:549: error: `bm' undeclared (first use in this function)
make: *** [obj/mingw32/alleg/gdi.o] Error 1

What's gone wrong? Do I need a more up to date version of mingw?

*** EDIT ***
Not to worry, got it all compiling now
Just had to download an up to date version of the windows API stuff from mingw.org

Thread #554056. Printed from Allegro.cc