From: Jari Williamsson Date: 2008-01-03T18:01:54+09:00 Subject: Re: Embedding Ruby into a Borland C++ Builder Application Mohit Sindhwani wrote: > 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 :) Is there any such thing as extern "C++"? This must be a mistake in the sources? >> Anyway, bcc version ruby is almost dead now, and may be >> deprecated in the future. >> > > I hope not! Again, thanks for the tips! I also hope not. C++Builder (or as the current name, Developer Studio) is an excellent RAD tool, and for the occasional apps that needs Ruby scripting it would be great if everything works. A couple of years ago, I had to use it Ruby in a C++ Builder project, googled about it and every discussion thread I searched about it ended in a kind of "uncertain" state. So I finally ended up building a custom DLL wrapper to the one-click version of the Ruby DLL library instead. Very time-consuming, since I had to re-prototype every Ruby C function I needed. Best regards, Jari Williamsson