This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Missing inttypes.h
Type: compile error Stage: resolved
Components: Versions: Python 3.7, Python 3.6
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, garyrsimpson
Priority: normal Keywords:

Created on 2018-09-06 01:10 by garyrsimpson, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg324656 - (view) Author: Gary Simpson (garyrsimpson) Date: 2018-09-06 01:10
I started with Anaconda3 (python3.64). When I add #include "python.h" to my C++ code, I get the visual studio 2012 compile error:
anaconda3\include\pyport.h(6): fatal error C1083: Cannot open include file: 'inttypes.h': No such file or directory

I then installed python 3.7, and put that include directory into my project. But I get the same error when I try to compile. 
python.h calls pyport.h, which tries to call inttypes.h, which it can't find. I searched and cannot find inttypes.h anywhere on my computer.
msg324657 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2018-09-06 01:44
Python 3.6 requires a C compiler that supports C99. So, not MSVC 2012.
History
Date User Action Args
2022-04-11 14:59:05adminsetgithub: 78774
2018-09-06 01:44:22benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg324657

resolution: wont fix
stage: resolved
2018-09-06 01:10:24garyrsimpsoncreate