From: Roger Pack Date: 2010-01-23T02:44:09+09:00 Subject: Re: Ruby c extensions on windows Philliam Auriemma wrote: > Hey guys, > I have a ruby extension I have written in c++, and I am using Windows. > My code successfully compiles to a .dll, and I put it in the folder > where all the other compiled extensions for ruby are (they are > included with ruby, like socket.so, etc), and requiring it in ruby > does not work. Is this because ruby does not work with dlls, and you > have to have a .so file? If so, how can I turn my code into a .so? I'm not sure about VC land, but if you use mingw + devkit (and mkmf) it should compile a .so file for you. I'm not positive, but I heard that 1.8 *can* load .dll files, but 1.9 requires .so I wish I could help you more but I haven't had much work with MSVC. -r -- Posted via http://www.ruby-forum.com/.