[issue27324] Error when building Python extension

2016-06-16 Thread Mark
eated. But the link fails with the following error: LINK : fatal error LNK1181: impossible to open the input file 'ucrt.lib' This library does not exist in my VS13 environment. Message d'origine De : Zachary Ware À : tib...@netcourrier.com Objet : [issue27324] Error

[issue27324] Error when building Python extension

2016-06-15 Thread Zachary Ware
Zachary Ware added the comment: Using the wrong compiler, you may wind up with an extension that appears to work, and you may never have a problem with it if conditions are just right. This article[1] looks like a pretty good explanation of why you don't want to do it, though (note: I've only

[issue27324] Error when building Python extension

2016-06-15 Thread Mark
. Regards, Mark Message d'origine De : Zachary Ware À : tib...@netcourrier.com Objet : [issue27324] Error when building Python extension Date : 15/06/2016 15:42:36 CEST Zachary Ware added the comment: Hi Mark, To build Python extensions on Windows, you need to have a compiler tha

[issue27324] Error when building Python extension

2016-06-15 Thread Zachary Ware
Zachary Ware added the comment: Hi Mark, To build Python extensions on Windows, you need to have a compiler that can link to the same C runtime used by the Python interpreter. For 3.5, that means you need VS2015; VS2013 won't work. -- nosy: +zach.ware resolution: -> not a bug stage:

[issue27324] Error when building Python extension

2016-06-15 Thread Mark
New submission from Mark: I'd like to build a C++ extension for Python. I took a simple C file from a tutorial and wrote the setup.py file. But when I run the command: python setup.py build_ext --inplace I get the following error: error: Unable to find vcvarsall.bat This file is located in "c: