From: Masao M. <mu...@hi...> - 2005-10-08 15:29:18
|
むとうです。 On Sat, 08 Oct 2005 12:14:11 +0900 (JST) Kouhei Sutou <ko...@co...> wrote: > 須藤です. > > Ruby/Pangoの方がシンボル無いよ、とエラーが出ました。 > > > > rbpangocontext.c: In function ‘rcontext_set_font_options’: > > rbpangocontext.c:207: 警告: implicit declaration of function ‘RVAL2CRFONTOPTIONS’ > > rbpangocontext.c:207: 警告: passing argument 2 of ‘pango_cairo_context_set_font_options’ makes pointer from integer without a cast > > rbpangocontext.c: In function ‘rcontext_get_font_options’: > > rbpangocontext.c:217: 警告: implicit declaration of function ‘CRFONTOPTIONS2RVAL’ > > > > LinuxではWarningですみますが、Win32ではリンク時にエラーになるので > > 対処が必要です。 > > > > 対応としては、#ifdef RVAL2CRFONTOPTIONSをRuby/Pango側でやるか、 > > rcairo側で上記マクロをフェイクでも構わないので用意するか、のどちらかだと > > 思いますが、どうされますか? > > 昨夜cairo_font_options_tを実装したので,rcairoをアップデート > すると直ると思います. 無事動作することを確認しました。 ただ、今度はRuby/Pango側で以下のWarningが出ました。 rb_cairo_surface.c: In function ‘cr_surface_write_to_png’: rb_cairo_surface.c:193: 警告: implicit declaration of function ‘rb_need_block’ rb_need_blockは Ruby 1.8.2では定義されていないようです。 -- .:% Masao Mutoh<mu...@hi...> |