From: David Vallner Date: 2006-01-15T04:05:56+09:00 Subject: Re: Compile Ruby9i on Windows On Sat, 14 Jan 2006 17:38:19 +0100, Bertram Scharpf wrote: > Hi, > > in my company we use Oracle and Windows :-(. > > Now, I would like at least to start for some quick-and-dirty > solutions to use Ruby. Maybe my boss could be convinced it's > worth a closer look. > > I'm afraid, I don't succeed to compile the > library at all. I get loads > of errors the more I try. I easily managed to compile my own > OCI (Oracle from C) programs with MSVC (by the way: C > plugins, too). > > I would build a project file of my own but as I see the Ruby > installation includes ".so" files. I don't know what > restrictions to use to build DLLs that can be renamed to > that type. > > Could anyone please give me a short description of what is > to do? > > Thanks in advance, > > Bertram > > A .so is a .dll. They're compiled basically the same way, just remember to export the Init_* functions. (Or for qnd jobs, export all functions, you can always optimize later). If you have the time, you might want to give the file "rbconfig.rb" a read, pretty much everything the extension configuration scripts use is there. Also, a little bit of POSIX goes a long way. A lot of Makefile generators count on you using a sh-compatible shell, POSIX CLI tools, and gcc compiler flags. You might try switching to a cygwin or mingw build of ruby if you plan to use extensions a lot. David Vallner