From: Luis Lavena Date: 2010-01-22T14:50:41+09:00 Subject: Re: Ruby c extensions on windows On Jan 22, 2:00 am, 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? Ruby does load extensions from DLLs, at least all the versions I'm aware of. What is the exact error you're getting? If is "unable to find Init_my_extension" is because your DLL is not exporting the proper symbols. Please read README.EXT that comes with Ruby source code, or refer to Programming Ruby about creating a C extension. -- Luis Lavena