I resolved it. the problem is that no export function in the fox16.so file in Windows OS.
So we must add a export attribute in the function Init_fox16 .
I change the follow line in file FXRuby.cpp
extern "C" void Init_fox16(void)
into
extern "C" void __attribute__ ((dllexport)) Init_fox16(void).
then recompile it and link.
then it works well now.
Lyle Johnson-4 wrote:
On Mar 11, 2009, at 6:44 AM, prog james wrote:
> I built fxruby-1.6.19 in win32 using msys + mingw tools.
> The process of doing it is ok and generate a file fox16.so in the
> directory
> ext\fox16.
> But when i require 'fox16', it fails to work. it reports that
> "LoadError:
> 127. The specified procedure could not be found . - Init_fox16
> C:/ruby_1.9.1/usr/local/lib/ruby/site_ruby/1.9.1/i386-msvcrt/
> fox16.so ".
> how can i resolve it? thanks.
I don't have MinGW set up anymore and I'm not really inclined to do so
until that becomes the new standard distribution for Ruby on Windows.
If you come up with a solution to this problem and would like to
submit a patch to fix it, I'd be glad to include that in a future
release of FXRuby.
_______________________________________________
fxruby-users mailing list
fxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/fxruby-users