From: Sig Date: 2006-09-23T01:25:15+09:00 Subject: Re: Ruby and Borland C++ Logan Capaldo wrote: > On Fri, Sep 22, 2006 at 02:35:09AM +0900, Sig wrote: >> Thanks Paul for you reply, still I can not solve the problem. I think >> this part from win32.h causes the error: >> >> #if defined(__cplusplus) >> extern "C++" { >> #endif >> > [snip some includes] >> #if defined(__cplusplus) >> } >> #endif >> >> >> Looks like the same headers are defined twice as C++ and as C. Any other >> suggestions how to fix that? If I try to redefine them as C I get errors >> that types defined in stdio.h don't exist. > Hmmm, I've never seen extern "C++" before. That whole file looks very MS > compiler specific. I would suggest maybe trying to change it to extern > "C". Of course that's just a W.A.G. > Unfortunately it doesn't help. I just got lost in these redefinitions. Anyone has a success trying to use ruby with BCB? Everything compiles just perfectly with MS C++. The problem is we have a big application written in BCB and now we have to extend it with scripting. Ruby seems to be a very good choice for that but we ran into BCB compatibility problems.