How do I get Visual Express 2010 to find my python.h header file?
I already did a search, but I just couldn't find what I searched for. I want to create a Python Module using C++ and Visual C++ Expr开发者_运维知识库ess 2010. Now, I need to include Python.h, but when I compile it says it couldn't find Python.h. How do I give my VC the Python header file ?
Tell IDE where header is located:
Project -> Properties -> C/C++ -> Additional Include Directories
You either have to set the path to to the python include files in your IDE. Navigate to Tools | Options | Projects and Solutions | VC++ Directories
and add the path under Include Directories
.
精彩评论