2011年7月20日水曜日

INT32


問題:
CXX    JpegWriter.lo
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winnt.h:192:0,
                 from c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:253,
                 from ../poppler/poppler-config.h:84,
                 from ../poppler/Error.h:33,
                 from JpegWriter.cc:17:
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/basetsd.h:54:13: error: conflicting declaration 'typedef int INT32'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/jmorecfg.h:165:14: error: 'INT32' has a previous declaration as 'typedef long int INT32'
make[2]: *** [JpegWriter.lo] Error 1
対策:
  • JpegWriter.hで、basetsd.hへの参照を挟む。
    #include <sys/types.h>
    #include <basetsd.h>

0 件のコメント:

コメントを投稿