Best tools for compiling Ruby (Windows)?

On 3/31/06, Curt H. [email protected] wrote:

the site and the person behind it) which is built with VC6 – and is
ass.
where those pieces were already problem included.

Curt

I need to start proof reading my responses before I hit “Send” – I’m
embarrassed at the number of grammatical errors in my little post
above! :frowning:

On 3/31/06, Joel VanderWerf [email protected] wrote:

Just thought I’d complete the thread with what works for me.

I’ve done a little work with an extension compiled with VC++2003 and
ruby-1.8.4, One-Click. Am I just lucky that it works? Or is that known
to be OK?

You’re lucky.

It all depends on what Windows APIs it uses in combination with other
Windows API calls outside of the extension. One known culprit is the
global variable ERRNO which is physically part of the runtime DLL –
and there is a different runtime DLL for each compiler version. So if
you extension calls an API that sets ERRNO, and another part of Ruby
checks the value of ERRNO, they will be using different memory
locations, with unpredictable results.

Curt