From: Sean O'Dell Date: 2003-06-13T01:43:02+09:00 Subject: Re: Embedding in Borland C++ Builder "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com> wrote in message news:pan.2003.06.12.08.31.47.472446@sneakemail.com... > On Wed, 11 Jun 2003 20:09:05 +0000, Sean O'Dell wrote: > > > I want to try embedding Ruby into a new Borland C++ Builder application, and > > while I've poked around and found bits of information here and there, I'm > > having trouble coming up with a "shortest path between A and B" sort of > > solution. I'd prefer to get 1.8 embedded, but 1.6 is fine. If I could just > > get the Ruby API compiled into a .DLL somehow, I'm sure I could get Builder > > to load and use it, with some help from the ruby.h file. > > > > What should I be doing to start off with? > > > Don't start out with .DLL's.. DLL's may couse trouble. > Instead do static-linking with the ruby-library. Unfortunately, I get linker errors with the static library I built in the bcc32 directory (__umask, _getpid and one other couldn't be resolved). I'm having some luck with the .dll, but I don't have a lot of choice at the moment. Perhaps later I will have time to figure out why those functions are missing out of the static library. Sean O'Dell