[fxruby-users] FXRuby-1.6.19 don't run in ruby1.9.1 on windows.

prog james proguser at yahoo.cn
Wed Mar 11 21:57:06 EDT 2009

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)
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 at rubyforge.org
> http://rubyforge.org/mailman/listinfo/fxruby-users

View this message in context: http://www.nabble.com/FXRuby-1.6.19-don%27t-run-in-ruby1.9.1-on-windows.-tp22451035p22468445.html
Sent from the FXRuby Users mailing list archive at Nabble.com.

More information about the fxruby-users mailing list