From: David Vallner Date: 2006-01-17T04:24:20+09:00 Subject: Re: Compile Ruby9i on Windows On Mon, 16 Jan 2006 19:19:19 +0100, Bertram Scharpf wrote: > 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. Oh dear. Someone dared to forget to code in that bleeding-edge experimental new shiny C99 . Arguably the thing I hated most about C. *mutters about Borland Turbo C colleges* > > Now it compiles and works great. Thank you! > Hoolay! If that was all that was needed, you're lucky, I can't get even "nonsense" like iconv and fastcgi to build out of the box. David Vallner