[Flac-dev] Compilation of flac-1.2.1 fails under MinGW

Jérôme COUDERC jerome.couderc at gmail.com
Mon Dec 3 13:20:15 PST 2007


Hi,

    I obtain the following error messages when trying to compile flac 
1.2.1 under MinGW :

 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DFLaC__INLINE=__inline__ -DNDEBUG 
-I../..  -I./include -I../../include -O3 -funroll-loops 
-finline-functions -Wall -W -Winl ine -g -O2 -MT stream_decoder.lo -MD 
-MP -MF .deps/stream_decoder.Tpo -c stream_ decoder.c  -DDLL_EXPORT 
-DPIC -o .libs/stream_decoder.o
In file included from stream_decoder.c:56:
../../include/share/alloc.h:41:5: #error
In file included from stream_decoder.c:56:
../../include/share/alloc.h: In function `safe_malloc_mul_2op_':
../../include/share/alloc.h:120: error: `SIZE_T_MAX' undeclared (first 
use in th is function)
../../include/share/alloc.h:120: error: (Each undeclared identifier is 
reported  only once
../../include/share/alloc.h:120: error: for each function it appears in.)
../../include/share/alloc.h: In function `safe_malloc_mul_3op_':
../../include/share/alloc.h:130: error: `SIZE_T_MAX' undeclared (first 
use in th is function)
../../include/share/alloc.h: In function `safe_malloc_mul2add_':
../../include/share/alloc.h:143: error: `SIZE_T_MAX' undeclared (first 
use in th is function)
../../include/share/alloc.h: In function `safe_realloc_mul_2op_':
../../include/share/alloc.h:196: error: `SIZE_T_MAX' undeclared (first 
use in th is function)

With flac 1.1.3, the compilation succeed

Regards,
Jerome



More information about the Flac-dev mailing list