<div dir="ltr">From: Irmen de Jong <<a href="mailto:irmen.NOSPAM@xs4all.nl" target="_blank">irmen.NOSPAM@xs4all.nl</a>><br>>> To: <a href="mailto:python-list@python.org" target="_blank">python-list@python.org</a><br>
>> Cc: <br>>> Date: Mon, 03 Dec 2012 01:10:23 +0100<br>
>> Subject: Re: setup.py Choosing Older Compiler On Windows<br>>> On 2-12-2012 22:06, Dave Angel wrote:<br>>> 
> On 12/02/2012 09:34 AM, Ami Tavory wrote:<br>>> 
>>   Hello,<br>>> 
>><br>>> 
>>   I'm porting a C++ extension module to a Windows machine >> that has both VC8<br>
>> >> and VC10 installed. Unfortunately, `setup.py build` tries to build >> using<br>>> 
>> VC8, which fails (the extension uses C++ standard libraries >> that VC  didn't<br>
>> >> used to have). Is there a way to get setup.py to use VC10 >> (preferably<br>
>> >> externally, without modifying the script)?<br>>> 
>><br>>> 
>><br>>> 
><br>>> 
> I haven't had to do Windows C++ development for many years, >> but there<br>>> 
> used to be a vcvars.bat  in each compiler installation, and you >> run the<br>>> 
> one corresponding to the compiler & libraries you want.<br>
>> <br>
>> <br>>> 
Forcing it to use a different compiler than the one that was used to >> build Python<br>>> 
itself, may very well lead to a non-working extension module.<br>
>> <br>>> 
Irmen<br><br>  Dave, Irmen,<br><br>  Many thanks for your answers - much appreciated! <br><br>  Got cvcars.bat to work in the sense that calling the compiler from the command line resulted in the newer one being called, but setup.py for some reason persisted in calling the older one. So due to Irmen's concern, this, and other issues, I just hacked away the C++11 stuff and used the old compiler. <br>
<br>  Many thanks,<br><br>  Ami<br><br>  <br></div>