From: Norman Su Date: 2002-12-20T10:38:03+09:00 Subject: msys w/ FXRuby Hi, I'm currently trying to compile FXRuby 1.0.17 with the latest version of minGW/msys installed on Windows XP: normsu[170]$ uname -sr MINGW32_NT-5.1 1.0.8(0.46/3/2) normsu[171]$ gcc -v .... Thread model: win32 gcc version 3.2 (mingw special 20020817-1) I've managed to compile fox-1.0.17 and ruby-1.6.8 (preview 4) without a hitch. (I had to change some paths for ruby though-- for example /usr/local => c:/msys/1.0/local) However, once I got to compiling FXRuby, I had to get rid of the -fno-strict-prototype flags being added in /ext/fox/extconf.rb because gcc was complaining. After that, I get farther but run into the following error: g++ -DIMPORT -DNT -D__NO_ISOCEXT -g -O2 -DWIN32 -Iinclude -I. -IC:/msys/1.0/local/ lib/ruby/1.6/i686-mingw32 -IC:/msys/1.0/home/normsu/FXRuby-1.0.17/ext/fox -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H -IC:/msys/1.0/local/include/fox -I/usr/local/ include -c -o opengl_wrap.o opengl_wrap.cpp opengl_wrap.cpp: In function `VALUE FXGLViewer_readPixels(FXGLViewer*, int, int, int, int)': opengl_wrap.cpp:724: `alloca' undeclared (first use this function) opengl_wrap.cpp:724: (Each undeclared identifier is reported only once for each function it appears in.) make: *** [opengl_wrap.o] Error 1 I scoured the mailing lists and I've seen some related errors with Solaris, but apparently no solutions. I've tried fiddling with ruby.h's "if defined(HAVE_ALLOCA_H) etc." as described by Lyle in previous postings, but the error persists. I also tried changing some of the intern.h definitions as described in "list of things that can go wrong" section, but that doesn't help as well. Any ideas? Am I supposed to use a different version of ruby? Am I doing something incredibly stupid? Thank you, -- Norman