From: Bertram Scharpf Date: 2006-01-17T03:19:19+09:00 Subject: Re: Compile Ruby9i on Windows Hi, Am Sonntag, 15. Jan 2006, 04:05:56 +0900 schrieb David Vallner: > On Sat, 14 Jan 2006 17:38:19 +0100, Bertram Scharpf > wrote: > > >in my company we use Oracle and Windows :-(. > > > >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). > > 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. Phew, I had to edit all the source files and put the variable declarations in front of the statements. Now it compiles and works great. Thank you! > You might try switching to a cygwin or mingw build of ruby > if you plan to use extensions a lot. That will be the next step ... Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de