To get this error, I have to have a line like: #define _FILE_OFFSET_BITS
_FILE_OFFSET_BITS should either be undefined, or be set to 32 or 64 (see https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html). 'Blank' is not a valid setting. I'm not sure where this is happening in your build, but that's what you need to look for. dw On 8/21/2016 6:15 PM, kl222 wrote: > When I compile tiff, the following error occurred: > > [ 4%] Building C object libtiff/CMakeFiles/tiff.dir/tif_close.c.obj > In file included from D:/msys32/mingw32/i686-w64-mingw32/include/io.h:169:0, > from D:/msys32/mingw32/i686-w64-mingw32/include/fcntl.h:8, > from > D:/source/rabbitim/ThirdLibrary/src/tiff/libtiff/tiffiop.h:36, > from > D:/source/rabbitim/ThirdLibrary/src/tiff/libtiff/tif_aux.c:32: > D:/msys32/mingw32/i686-w64-mingw32/include/_mingw_off_t.h:23:55: error: > operator '==' has no left operand > #if (defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)) > ^~ > In file included from > D:/msys32/mingw32/i686-w64-mingw32/include/fcntl.h:8:0, > from > D:/source/rabbitim/ThirdLibrary/src/tiff/libtiff/tiffiop.h:36, > from > D:/source/rabbitim/ThirdLibrary/src/tiff/libtiff/tif_aux.c:32: > > My gcc: > > $ gcc -v > Using built-in specs. > COLLECT_GCC=D:\msys32\mingw32\bin\gcc.exe > COLLECT_LTO_WRAPPER=D:/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/lto-wrapper.exe > Target: i686-w64-mingw32 > Configured with: ../gcc-6.1.0/configure --prefix=/mingw32 > --with-local-prefix=/mingw32/local --build=i686-w64-mingw32 > --host=i686-w64-mingw32 --target=i686-w64-mingw32 > --with-native-system-header-dir=/mingw32/i686-w64-mingw32/include > --libexecdir=/mingw32/lib --enable-bootstrap --with-arch=i686 > --with-tune=generic > --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared > --enable-static --enable-libatomic --enable-threads=posix > --enable-graphite --enable-fully-dynamic-string > --enable-libstdcxx-time=yes --disable-libstdcxx-pch > --disable-libstdcxx-debug --disable-isl-version-check --enable-lto > --enable-libgomp --disable-multilib --enable-checking=release > --disable-rpath --disable-win32-registry --disable-nls --disable-werror > --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw32 > --with-mpfr=/mingw32 --with-mpc=/mingw32 --with-isl=/mingw32 > --with-pkgversion='Rev1, Built by MSYS2 project' > --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as > --with-gnu-ld --disable-sjlj-exceptions --with-dwarf2 > Thread model: posix > gcc version 6.1.0 (Rev1, Built by MSYS2 project) > > > This is mingw of BUG? > > ------------------------------------------------------------------------------ > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public