From: Marco Trudel <mtrudel at gmx dot ch> Date: Sun, 24 Sep 2006 21:12:24 +0200 > Hello list > > I use cygwin on windows. Compiling GCC 4.1.1 source works, using the current subversion state, I get: > > /cygdrive/d/GCC/build/./gcc/xgcc -shared-libgcc -B/cygdrive/d/GCC/build/./gcc -nostdinc++ -L/cygdrive/d/GCC/build/i686-pc-cygwin/libstdc++-v3/src -L/cygdrive/d/GCC/build/i686-pc-cygwin/libstdc++-v3/src/.libs -B/cygdrive/d/GCC/out/i686-pc-cygwin/bin/ -B/cygdrive/d/GCC/out/i686-pc-cygwin/lib/ -isystem /cygdrive/d/GCC/out/i686-pc-cygwin/include -isystem /cygdrive/d/GCC/out/i686-pc-cygwin/sys-include-I/cygdrive/d/GCC/build/i6 86-pc-cygwin/libstdc++-v3/include/i686-pc-cygwin -I/cygdrive/d/GCC/build/i686-pc-cygwin/libstdc++-v3/include -I/cygdrive/d/GCC/source/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -O2 -c /cygdrive/d/GCC/source/libstdc++-v3/src/codecvt.cc -o codecvt.o > /cygdrive/d/GCC/source/libstdc++-v3/src/codecvt.cc:1: warning: -ffunction-sections may affect debugging on some targets > In file included from /cygdrive/d/GCC/build/i686-pc-cygwin/libstdc++-v3/include/ext/type_trait s.h:38, > from /cygdrive/d/GCC/build/i686-pc-cygwin/libstdc++-v3/include/bits/stl_algob ase.h:73, > from /cygdrive/d/GCC/build/i686-pc-cygwin/libstdc++-v3/include/bits/char_trai ts.h:46, > from /cygdrive/d/GCC/build/i686-pc-cygwin/libstdc++-v3/include/string:46, > from /cygdrive/d/GCC/build/i686-pc-cygwin/libstdc++-v3/include/bits/locale_cl asses.h:47, > from /cygdrive/d/GCC/build/i686-pc-cygwin/libstdc++-v3/include/locale:44, > from /cygdrive/d/GCC/source/libstdc++-v3/src/codecvt.cc:30: > /cygdrive/d/GCC/build/i686-pc-cygwin/libstdc++-v3/include/limits:291:22: error: > macro "min" requires 2 arguments, but only 1 given > I suspect you have (wrongly) included windef.h somewhere. > > > I compile with: > /cygdrive/d/GCC/source/configure --prefix=/cygdrive/d/GCC/out \ > --enable-languages=c,c++,java \ > --disable-nls --disable-debug --disable-shared --disable-checking \ > --enable-threads=win32 ^^^^^^ And this is why. Change to use default posix thread model. Danny