2011年7月20日水曜日

redefinition of 'struct timeval'

問題:
CXX    GooTimer.lo
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windows.h:98:0,
                 from GooTimer.h:27,
                 from GooTimer.cc:20:
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winsock2.h:103:2: warning: #warning "fd_set and associated macros have been defined in sys/types.
 This may cause runtime problems with W32 sockets"
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winsock2.h:109:8: error: redefinition of 'struct timeval'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/sys/time.h:16:16: error: previous definition of 'struct timeval'
make[2]: *** [GooTimer.lo] Error 1
対策:
  • mingwrt-3.18-mingw32-dev.tar.gz上書きで直ったかもしれない。

0 件のコメント:

コメントを投稿