From: WATANABE Hirofumi Date: 2003-01-28T12:54:23+09:00 Subject: Re: "undefined ref to 'flock'" when compiling 1.8 under cygwin Hi, coma_killen@fastmail.fm writes: > gcc -mno-cygwin -g -O2 main.o dmyext.o libmsvcrt-ruby18-static.a > -lwsock32 > -o miniruby.exe > libmsvcrt-ruby18-static.a(numeric.o): In function `flo_to_s': > /tmp/ruby/numeric.c:280: undefined reference to `__fpclassify' > libmsvcrt-ruby18-static.a(numeric.o): In function `flo_is_infinite_p': > /tmp/ruby/numeric.c:731: undefined reference to `__fpclassify' > libmsvcrt-ruby18-static.a(numeric.o): In function `flo_is_finite_p': > /tmp/ruby/numeric.c:744: undefined reference to `__fpclassify' > libmsvcrt-ruby18-static.a(bignum.o): In function `dbl2big': > /tmp/ruby/bignum.c:786: undefined reference to `__fpclassify' > libmsvcrt-ruby18-static.a(bignum.o): In function `rb_big2dbl': > /tmp/ruby/bignum.c:827: undefined reference to `__fpclassify' > libmsvcrt-ruby18-static.a(marshal.o):/tmp/ruby/marshal.c:198: more > undefined ref > erences to `__fpclassify' follow > collect2: ld returned 1 exit status > make: *** [miniruby.exe] Error 1 > > Any ideas? I think that your gcc is old. It has not taken adjustment with the mingw-runtime. I suggest you upgrade to the latest version of the gcc package. -- eban