Hi Nakada-san,
Thank you for your replies. My main reason to use BCC is simply because
we’re using Codegear’s Turbo C++ Professional (Borland C++ Builder) and
would like to embed scripting into our application. I really like
Borland C++ Builder, so I do hope that it doesn’t get deprecated 
My remaining answers are inline.
Nobuyoshi N. wrote:
- This died halfway through because it could not find c0x32.obj though
it was in the BDS\4.0\lib directory. To make this work, I went to the
Makefile.sub and updated it to pass the OBJ file path to the ilink32
executable:
LD = ilink32 -q -Gn -j"D:\Program Files\Borland\BDS\4.0\lib"
It is that your setup wasn’t enough, as you need the option in
general, so put it in ilink32.cfg file.
I think that’s correct - I need to update ilink32.cfg to include that.
A simple example of declarations with and without extern “C”
I haven’t tried to link C++ and am not sure why you failed.
Linking in a C program works perfectly fine. The problem that I was
having was in a C++ file. I found some hints from another thread:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/215624
Based on this, I changes win32.h - it originally has a line like:
#if defined(__cplusplus)
extern “C++” {
#endif
((after this, in does #include for stdio.h, stdlib.h, etc.))
I changed the C++ there to “C” and then it works fine. I also had to
remark out one of the lines in missing.h because it seems that one of
the definitions there is now not missing 
E:\RB_BCC\LIB\BCCWIN32-RUBY18-STATIC.LIB|win32
Seems runtime libraries aren’t linked.
I think that’s the problem. Anyway, right now, the DLL version works
fine. So, I shall investigate this again.
Anyway, bcc version ruby is almost dead now, and may be
deprecated in the future.
I hope not! Again, thanks for the tips!
Best Regards
Mohit.