Problem Building Module bah.freeimage
BlitzMax Forums/Brucey's Modules/Problem Building Module bah.freeimage
| ||
Hello, I recently got freeimage, but every time I try to build it, I get this error: Building Modules Compiling:Conversion.cpp C:/Blitz/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/Conversion.cpp: In function 'FIBITMAP* FreeImage_ColorQuantize(FIBITMAP*, FREE_IMAGE_QUANTIZE)': C:/Blitz/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/Conversion.cpp:54:1: warning: 'FIBITMAP* FreeImage_ColorQuantize(FIBITMAP*, FREE_IMAGE_QUANTIZE)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] FreeImage_ColorQuantize(FIBITMAP *dib, FREE_IMAGE_QUANTIZE quantize) { ^ C:/Blitz/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/Conversion.cpp: In function 'FIBITMAP* FreeImage_ColorQuantizeEx(FIBITMAP*, FREE_IMAGE_QUANTIZE, int, int, RGBQUAD*)': C:/Blitz/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/Conversion.cpp:59:1: warning: 'FIBITMAP* FreeImage_ColorQuantizeEx(FIBITMAP*, FREE_IMAGE_QUANTIZE, int, int, RGBQUAD*)' redeclared without dllimport attribute after being referenced with dll linkage [enabled by default] FreeImage_ColorQuantizeEx(FIBITMAP *dib, FREE_IMAGE_QUANTIZE quantize, int PaletteSize, int ReserveSize, RGBQUAD *ReservePalette) { ^ C:/Blitz/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/Conversion.cpp: In function 'FIBITMAP* FreeImage_ColorQuantizeEx(FIBITMAP*, FREE_IMAGE_QUANTIZE, int, int, RGBQUAD*)': C:/Blitz/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/Conversion.cpp:72:20: error: exception handling disabled, use -fexceptions to enable } catch (char *) { ^ C:/Blitz/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/Conversion.cpp: In function 'FIBITMAP* FreeImage_ConvertFromRawBits(uint8_t*, int, int, int, unsigned int, unsigned int, unsigned int, unsigned int, int32_t)': C:/Blitz/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/Conversion.cpp:95:1: warning: 'FIBITMAP* FreeImage_ConvertFromRawBits(uint8_t*, int, int, int, unsigned int, unsigned int, unsigned int, unsigned int, int32_t)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] FreeImage_ConvertFromRawBits(BYTE *bits, int width, int height, int pitch, unsigned bpp, unsigned red_mask, unsigned green_mask, unsigned blue_mask, BOOL topdown) { ^ C:/Blitz/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/Conversion.cpp: In function 'void FreeImage_ConvertToRawBits(uint8_t*, FIBITMAP*, int, unsigned int, unsigned int, unsigned int, unsigned int, int32_t)': C:/Blitz/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/Conversion.cpp:116:1: warning: 'void FreeImage_ConvertToRawBits(uint8_t*, FIBITMAP*, int, unsigned int, unsigned int, unsigned int, unsigned int, int32_t)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] FreeImage_ConvertToRawBits(BYTE *bits, FIBITMAP *dib, int pitch, unsigned bpp, unsigned red_mask, unsigned green_mask, unsigned blue_mask, BOOL topdown) { ^ Build Error: failed to compile C:/Blitz/BlitzMax/mod/bah.mod/freeimage.mod/src/FreeImage/Conversion.cpp Process complete Any help would be appreciated, thanks! |
| ||
what version of GCC are you using? (from a commandline: GCC -v ) A lot of Brucey's modules require certain minimum versions to compile |