From: Robert Klemme Date: 2005-04-12T20:19:49+09:00 Subject: Re: extensions on Windows "Peter Wood" schrieb im Newsbeitrag news:f06210200be8134c79516@[192.168.252.154]... > Steve, > > I ran into this one as well while using the free compilation tools > from Microsoft. I believe you also have to install the .Net SDK to > get the MSVCRT.lib. Hope that helps. I'm not 100% sure but I think I remember that this lib is part of the OS. Did you check whether you have that file or MSVCRT.DLL on your machine? Kind regards robert > > Peter > > >I could use some help from someone who knows Windows. > > > >We use a commercial system engineering tool here at work. It has a C API > >that I've wrapped with SWIG and successfully made into an extension on > >Linux. The vendor's Linux library is static, but building it into the > >Ruby interpreter is straightforward. It works well. > > > >Some of my colleagues would like to use this extension on Windows. I run > >Cygwin with Ruby on my Windows machine, but the vendor's DLL was built > >with a Microsoft compiler. I played around for a couple of hours with > >trying to get gcc to link against a MS DLL and got nowhere, so I > >installed the One-Click Ruby for Windows and downloaded MS Visual C++ > >Toolkit 2003. After another couple of hours, it seemed I needed to also > >install something called the Platform SDK. OK, did that, but now it > >fails to find MSVCRT.lib when linking. > > > >What am I missing? Is there some simple way to set up an environment > >that can compile a single .c file, link against a DLL, and make a shared > >object for Ruby? > > > >Any help appreciated. > > > >Steve > > >