问题
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++ Express 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 ?
回答1:
Tell IDE where header is located:
Project -> Properties -> C/C++ -> Additional Include Directories
回答2:
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
.
来源:https://stackoverflow.com/questions/6613039/how-do-i-get-visual-express-2010-to-find-my-python-h-header-file