From: james@... (James Adam) Date: 2003-01-14T22:54:30+09:00 Subject: compiling FXRuby-1.0.17 under cygwin I'm having trouble compiling FXRuby under cygwin. here's the error i'm getting, then i'll explain a little more about my setup: $ ruby install.rb setup install.rb: entering setup phase... ---> lib ---> lib/fox <--- lib/fox <--- lib ---> ext ---> ext/fox make g++-2 -DUSEIMPORTLIB -g -O2 -fno-strict-prototype -fpermissive -DWIN32 -Iinclude -I. -I/usr/local/lib/ruby/1.6/i686-cygwin -I/tmp/FXRuby-1.0.17/ext/fox -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H -I/usr/local/include -I/usr/local/include/fox -c -o FXRuby.o FXRuby.cpp In file included from FXRuby.cpp:49: /usr/local/lib/ruby/1.6/i686-cygwin/rubyio.h:27: `typedef struct WIN32_OpenFileWIN32_OpenFile' redeclared as different kind of symbol /usr/include/w32api/winbase.h:1418: previous declaration of `HFILE WIN32_OpenFile(const CHAR *, _OFSTRUCT *, unsigned int)' FXRuby.cpp: In function `void * FXRbGetReadFileHandle(long unsigned int)': FXRuby.cpp:172: type `WIN32_OpenFile' is not a base type for type `OpenFile' FXRuby.cpp: In function `void * FXRbGetWriteFileHandle(long unsigned int)': FXRuby.cpp:189: type `WIN32_OpenFile' is not a base type for type `OpenFile' make: *** [FXRuby.o] Error 1 setup failed 'system make' failed try 'ruby install.rb --help' for usage ------------- this is running with ruby-1.6.8 (compiled under the latest cygwin too, plus i've tried it with ruby 1.8.0 with the same results). I've modified the Makefiles in FXRuby to use gcc-2/g++-2 (cygwin now defaults to gcc-3.2), but this hasn't helped at all either anyone have any ideas? thanks - James