« Return to Thread: FXRuby-1.6.19 don't run in ruby1.9.1 on windows.

Re: FXRuby-1.6.19 don't run in ruby1.9.1 on windows.

by Lyle Johnson-4 :: Rate this Message:

Reply to Author | View in Thread


On Mar 11, 2009, at 8:57 PM, prog james wrote:

> 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.

Thanks! I am going to try to figure out how to add this attribute in a  
cross-platform way (i.e. so that adding it doesn't break the build for  
other compilers and OS's).
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

 « Return to Thread: FXRuby-1.6.19 don't run in ruby1.9.1 on windows.