2011年7月20日水曜日

select

問題:
CC     gbacktrace.lo
In file included from gbacktrace.c:57:0:
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/sys/select.h:28:12: error: expected declaration specifiers or '...' before 'fd_set'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/sys/select.h:28:12: error: expected declaration specifiers or '...' before 'fd_set'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/sys/select.h:28:12: error: expected declaration specifiers or '...' before 'fd_set'
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windows.h:98:0,
                 from gbacktrace.c:65:
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winsock2.h:632:32: error: conflicting types for 'select'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/sys/select.h:28:5: note: previous declaration of 'select' was here
make[4]: *** [gbacktrace.lo] Error 1
考察:
  • cygwinのsys/select.hが混入していると考えられます。
対策:
C:\MinGW\include\sys>ren select.h *.bak
後、configureし直しも必要。

0 件のコメント:

コメントを投稿