« Return to Thread: MSC version unmatch

Re: MSC version unmatch

by Nobuyoshi Nakada-2 :: Rate this Message:

Reply to Author | View in Thread

Hi,

At Sun, 24 Dec 2006 08:05:05 +0900,
crysknife@... wrote in [ruby-talk:231120]:
> So, I'm writing a program which uses SWIG to interface between C++ and
> Ruby, and I just upgraded my Ruby version from an older version (I
> think 1.8.2) to the current stable release (1.8.5).  Now when I compile
> (in MSVS2003) I receive "fatal error C1189: #error :  MSC version
> unmatch" from Ruby's config.h, from these lines:
> #if _MSC_VER != 1200
> #error MSC version unmatch
> #endif

You can't mix ruby compiled with Visual C++ version 6 and
extensions compile with Visual C++ version 7 (MSVS2003), or
vice versa, due to the binary incompatibility between MSVC
runtime DLLs which those compilers use.

The only possible alternatives are:

a) compile your extension with VC6 (or mingw), or
b) compile ruby (and other extensions if you need) by yourself
   with VC7.

--
Nobu Nakada

 « Return to Thread: MSC version unmatch