[ruby-talk:00292] Re: AW: Re: Extensions to Ruby

From: "Bryce Dooley" <thecrow@...>
Date: 1999-04-27 17:55:50 UTC
List: ruby-talk #292
> But there's still one problem:  I use VC++ and want to create a DLL.
> It compiles with no errors, but the linker has problems to find some
procedures.
> Which modules do I have to include? Is there no library with all modules
linked together (like in Python) ?

Michael,
  I use VC++ too.  I had to grab the ruby.def from the source, change the
dll name in the .def to
rubygw32.dll (for some reason it doesn't match) then use MS's LIB.EXE with
the /DEF option
to create a .lib for the Ruby DLL.  THEN, you should be able to link the
.lib for the .dll

 Matz, could that dll name not matching in the .def be corrected or am I
missing something?

 Oh, but before you create the .lib you *might* need to add function names
to the ruby.def file.
I had to.

Let me know how this goes for you.
I look forward to hearing from you.

If you wish, I could e-mail you my .def and .lib.  I think I made it with
Ruby 1.23 ???

Let me know.
Bryce

BTW, if you don't mind me asking, what are you trying to accomplish with an
extension?

In This Thread