[C++-sig] boost.python built with VC2010

Giuseppe Corbelli giuseppe.corbelli at copanitalia.com
Mon Sep 29 16:36:27 CEST 2014


On 28/09/2014 10:30, Mohammed El-Afifi wrote:
> Hello,
> I have successfully built boost.python with visual c++ 2010(dynamic library,
> 64-bit). I have python 2.7.8 64-bit installed on windows 7 64-bit. I've read
> here
> https://docs.python.org/2/distutils/apiref.html#module-distutils.msvccompiler
> that python extensions should be built with the same compiler that was used to
> build python itself. My question is, since python 2.7.8 was built with visual
> c++ 2008 64-bit compiler, can I have the following mix
> a) my python extension built with VC2008 64-bit(to match python itself)
> b) 64-bit boost.python dll built with VC2010 64-bit
> c) python 64-bit, built itself with VC2008 64-bit?
> I've noticed that boost.python dll depends on python dll and that's why I'm
> quite worried about the mix. Appreciating your insights.

You would end up having multiple copies of C runtime loaded (msvcrt) and it's 
not a good idea. Don't have any reference at hand right now, sorry.

-- 
             Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318  Fax: +390302659932
E-mail: giuseppe.corbelli at copanitalia.com


More information about the Cplusplus-sig mailing list