You are right :
In file included from ../../include/tchar.h:41, from getopt.c:10, from _wgetopt.c:13: ../../include/msvcrt/string.h:169: error: conflicting types for 'wcsdup' /home/dave2/local/xmingw32-3.4.2/lib/gcc/mingw32/3.4.2/../../../../mingw32/include/wchar.h:241: error: previous declaration of 'wcsdup' was here ../../include/msvcrt/string.h:169: error: conflicting types for 'wcsdup' /home/dave2/local/xmingw32-3.4.2/lib/gcc/mingw32/3.4.2/../../../../mingw32/include/wchar.h:241: error: previous declaration of 'wcsdup' was here make[1]: *** [_wgetopt.o] Error 1 make: *** [tgetopt] Error 2
David