From: Xavier Noria Date: 2007-01-12T02:20:09+09:00 Subject: Re: same compiler needed for C libraries? On Jan 11, 2007, at 3:19 PM, Nobuyoshi Nakada wrote: Thank you! > At Thu, 11 Jan 2007 21:47:47 +0900, > Xavier Noria wrote in [ruby-talk:233538]: >> I've often heard that the same compiler should be used to compile >> Ruby and C extensions. I've also heard the same restriction for Perl, >> mod_perl, and Apache. Libraries distributed as binaries for Windows >> have to be compiled with Microsoft the compiler as well, right? > > It is not accurate. They have to be compiled with *same > version* of Microsoft compiler, or mingw and VC6. You mean it is even stronger? Same compiler _and_ same version? > In general, gcc generated code is compatible with system > compilers. Great, that's helpful to know. In that case I guess on Solaris I could tweak the system-wide mkmf.rb to use gcc and it would work (I think the compiler suite is downloadable for free, but in this thread I just want to understand what works and what not). -- fxn