[Libjpeg-turbo-devel] problem when using jmorecfg.h and windows.h
SIMD-accelerated libjpeg-compatible JPEG codec library
Brought to you by:
dcommander
From: Vincent T. <vin...@gm...> - 2014-04-18 07:30:28
|
hello I'm compiling a library on Windows using libjpeg-turbo and mingw-w64 v3 (using 64 bits toolchain) and I get that error : CC eet_image.lo In file included from C:/MinGW/msys/1.0/opt/libjpeg-turbo/include/jpeglib.h:29:0, from eet_image.c:38: C:/MinGW/msys/1.0/opt/libjpeg-turbo/include/jmorecfg.h:163:14: error: conflicting types for 'INT32' typedef long INT32; ^ In file included from c:\mingw\msys\1.0\opt\windows_64\x86_64-w64-mingw32\include\winnt.h:134:0, from c:\mingw\msys\1.0\opt\windows_64\x86_64-w64-mingw32\include\minwindef.h:146, from c:\mingw\msys\1.0\opt\windows_64\x86_64-w64-mingw32\include\windef.h:8, from c:\mingw\msys\1.0\opt\windows_64\x86_64-w64-mingw32\include\windows.h:69, from c:\mingw\msys\1.0\opt\windows_64\x86_64-w64-mingw32\include\winsock2.h:23, from eet_image.c:30: c:\mingw\msys\1.0\opt\windows_64\x86_64-w64-mingw32\include\basetsd.h:31:22: note: previous declaration of 'INT32' was h ere typedef signed int INT32,*PINT32; ^ that library includes jpeglib.h after windows.h (if I include it before, i get other similar errors) in addition, INT32 and al types already exists on Windows : http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751%28v=vs.85%29.aspx Is there a solution to that problem ? thank you Vincent Torri |