Subject:
Re: [ruby-ffi] Re: segfault on windows MRI but not windows JRuby
From:
Luis Lavena
Date:
12/4/09 12:31 PM
To:
ruby-ffi@googlegroups.com

On Fri, Dec 4, 2009 at 11:18 AM, Bosko Ivanisevic
<bosko.ivanisevic@gmail.com> wrote:
>
> I've cloned ffi, executed:
> rake install
>
> and with new installation enumerating desktop windows sample works without
> problems except that sample on the Wiki has one error. Line:
>
> if not Win.EnumDesktopWindows
> should be:
>
> if not Win.enum_desktop_windows
>
> and in order to display window title puts command should be:
> puts "[%03i] Found '%s'" % [ win_count += 1, title.get_string(0) ]
>
> I was using Rubyinstaller 1.8.6. version of Ruby (mingw) with devkit to
> build ffi gem.

Ok, so perhaps the issue is related to GCC and mingw32 headers used by
cross compiling?

Wayne:

Which versions of packages for mingw32 do you have installed?

luis@seyori ~$ port installed | grep "mingw32"
  i386-mingw32-binutils @2.19.1_0 (active)
  i386-mingw32-gcc @3.4.5-20060117-2_0 (active)
  i386-mingw32-runtime @3.15.2_0 (active)
  i386-mingw32-w32api @3.13_0 (active)

-- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exupéry