Re: extconf.rb spitting out SH Makefile on windows?



On Mar 14, 3:17 pm, Mr Eiland <mreiland1...@xxxxxxxxx> wrote:
I ended up moving everything to the mingw toolchain, but I don't
understand why you're saying it's impossible to use Visual Studio.


I'm saying that using Ruby build with MinGW is not possible to compile
extensions with Visual Studio.

At the end of the day the windows loader is the one doing the work, not
the Ruby runtime.  Unless you're telling me the dll being spit out by
mingw isn't really a DLL?  I would need a more in depth explanation
before I would buy that Windows can load the appropriate DLL created by
mingw, but not the equivalent DLL created by Visual Studio.  We're not
talking about compiler specific object files.


Ruby 'mkmf' uses rbconfig, which is generated at compilation time of
Ruby, and is going to use the toolchain defined when Ruby was
compiled.

Beyond altering rbconfig to detect and use Visual Studio, is a matter
of CRT mismatch. This has been discussed in the list and the risk of
memory allocation and free of it due Ruby's GC design can generate
segfaults.

And if you need better answers, you can google for them, described the
problem above the big one, but there are others associated with
compilation flags.

--
Luis Lavena
.



Relevant Pages

  • Re: Windows Compilation Madness
    ... in 1.8.6 is a very very clean compilation and ... and under MinGW you have to rebuild ... Getting just rubygems + ruby up ... chain for the build chains. ...
    (comp.lang.ruby)
  • Re: Windows Compilation Madness
    ... rubyists are actually capable of building ruby + all of ext/* is quite ... environment up on the Windows platform - and that includes code I've ... the compilation problems that arise in the Windows environment? ... and under MinGW you have to rebuild ...
    (comp.lang.ruby)
  • Re: 1.8.6 OCI binary extension question
    ... Ruby 1.8.6 One-Click Installer. ... In the past I have used MS Visual Studio ... compilation, so you can generate the extension and the gem from Linux/ ...
    (comp.lang.ruby)
  • Re: Ruby Gem Box
    ... The reader probably will keep attracting with the witty elocution, in charm of the Ruby. ... 1st section BigFloat compilation ... Among Ruby binds of the GUI tool kit, collecting the FXRuby, the Gtk+ and the SDL which are not excessively introduced so far, it introduces. ... 1st chapter installation ...
    (comp.lang.ruby)
  • ruby version 1.9.2 dev with memcached-0.1.18 native compilation error/syntax errors
    ... encountered 2 exceptions (one during native compilation of memcached ... gem and second during ruby compilation of memcached rails.rb (syntax ... errors during gem execution of memcache gem ...
    (comp.lang.ruby)