Problem building bah.freeimage

BlitzMax Modules Forums/Brucey's Modules/Problem building bah.freeimage

Always gets stuck at PluginMNG.cpp:

Building Modules
Compiling:PluginMNG.cpp
In file included from C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibMNG/libmng_types.h:192,
                 from C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibMNG/libmng.h:379,
                 from C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/PluginMNG.cpp:25:
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:101: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:117: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:167: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:261: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:276: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:327: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:328: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:329: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:330: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:344: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:354: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:370: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:419: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:443: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:444: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:447: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:448: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:450: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:453: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:456: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:457: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:458: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:545: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:546: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:557: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:564: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:567: '
   boolean' is used as a type, but is not defined as a type.
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:725: `
   empty_output_buffer' was not declared in this scope
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:725: ISO 
   C++ forbids declaration of `boolean' with no type
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:725: function
   `int boolean(jpeg_compress_struct*)' is initialized like a variable
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:737: `
   fill_input_buffer' was not declared in this scope
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:737: ISO 
   C++ forbids declaration of `boolean' with no type
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:737: function
   `int boolean(jpeg_decompress_struct*)' is initialized like a variable
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:739: `
   resync_to_restart' was not declared in this scope
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:739: ISO 
   C++ forbids declaration of `boolean' with no type
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:739: function
   `int boolean(jpeg_decompress_struct*, int)' is initialized like a variable
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:780: type 
   specifier omitted for parameter `boolean'
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:780: parse
   error before `,' token
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:786: type 
   specifier omitted for parameter `boolean'
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:786: parse
   error before `,' token
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:792: type 
   specifier omitted for parameter `boolean'
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:792: parse
   error before `)' token
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:797: type 
   specifier omitted for parameter `boolean'
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:797: parse
   error before `)' token
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:816: `
   jpeg_marker_parser_method' was not declared in this scope
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:816: ISO 
   C++ forbids declaration of `boolean' with no type
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:816: typedef
   `boolean' is initialized (use __typeof__ instead)
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:816: `
   typedef int (boolean)(struct jpeg_decompress_struct*)' redeclared as 
   different kind of symbol
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:739: previous
   declaration of `int boolean(jpeg_decompress_struct*, int)'
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:982: `
   jpeg_start_decompress' declared as function returning a function
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:986: `
   jpeg_finish_decompress' declared as function returning a function
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:994: `
   jpeg_has_multiple_scans' declared as function returning a function
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:996: `
   jpeg_start_output' declared as function returning a function
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:997: `
   jpeg_finish_output' declared as function returning a function
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:998: `
   jpeg_input_complete' declared as function returning a function
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:1019: type
   specifier omitted for parameter `jpeg_marker_parser_method'
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:1019: parse
   error before `)' token
C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/LibJPEG/jpeglib.h:1045: `
   jpeg_resync_to_restart' declared as function returning a function
Build Error: failed to compile C:/Programme/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/PluginMNG.cpp
Process complete


P.S.: I have the modified bmk.exe

What's wrong?