From: Kent D. <ke...@st...> - 2001-11-23 21:45:22
|
Takaaki Tateishi wrote: > I'd like to inform you that I've released the version 0.4 of Ruby/FLTK. > You can download the source archive and the binary for cygwin at the > following URL: > http://ruby-fltk.sourceforge.net/ Hi. I have some small problems with 0.4. I'm running Mandrake 8.0, Ruby 1.6.4 (and 1.6.5), gcc 2.96 <SNIP> g++ -fPIC -O3 -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -I/usr/lib/ruby/1.6/i586-linux-gnu -I/usr/include -DHAVE_X11_X_H -DHAVE_X11_XLOCALE_H -DHAVE_SETLOCALE -DHAVE_FL_FL_H -I/usr/local/include -I/usr/X11R6/include -DUSE_GL -I/usr/local/include -I/usr/X11R6/include -c -o flmenu.o flmenu.cc flmenu.cc:145:20: warning: extra tokens at end of #undef directive g++ -fPIC -O3 -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -I/usr/lib/ruby/1.6/i586-linux-gnu -I/usr/include -DHAVE_X11_X_H -DHAVE_X11_XLOCALE_H -DHAVE_SETLOCALE -DHAVE_FL_FL_H -I/usr/local/include -I/usr/X11R6/include -DUSE_GL -I/usr/local/include -I/usr/X11R6/include -c -o flscroll.o flscroll.cc flscroll.cc:29:3: warning: pasting "::" and "HORIZONTAL" does not give a valid preprocessing token flscroll.cc:30:3: warning: pasting "::" and "VERTICAL" does not give a valid preprocessing token flscroll.cc:31:3: warning: pasting "::" and "BOTH" does not give a valid preprocessing token flscroll.cc:32:3: warning: pasting "::" and "HORIZONTAL_ALWAYS" does not give a valid preprocessing token flscroll.cc:33:3: warning: pasting "::" and "BOTH_ALWAYS" does not give a valid preprocessing token </SNIP> This all compiles, but those warnings look scary. Is this something I should worry about? But I also got the ol' rb_gc_mark problem. <SNIP> flwidget.cc: In function `void rb_fl_mark (Fl_Widget *)': /usr/local/lib/ruby/1.6/i686-linux/intern.h:189: too many arguments to function `void rb_gc_mark ()' flwidget.cc:34: at this point in file </SNIP> But this seemed to be the GCC 2.96 fault. I changed the intern.h of Ruby to read void rb_gc_mark(VALUE); and the flwidget.cc in ruby-fltk to read rb_gc_mark( (long unsigned int)(userdata)); I know, I should update :-) ________________________ Now, as for something _functional_ I'm missing. FL_SYMBOL_LABEL. I was hoping for find SYMBOL_LABEL constant in Fltk, as I want my buttons to show those nice arrow pictures. When I didn't find, it I tried this: 10.times{|i| upbutton = Fltk::Button.new( x, y ,butw, h/(4*3), '@#2<-' ). labeltype=i } and noticed that the second button (labeltype=1) doesn't show anything (a.k.a. it is FL_NO_LABEL), but the other types don't appear to work. (labeltype>5 all also go blank.) -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/ |