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

Lyle Johnson lyle at lylejohnson.name
Thu Mar 12 09:56:46 EDT 2009

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

More information about the fxruby-users mailing list