How do I get Visual Express 2010 to find my python.h header file?

落爺英雄遲暮 提交于 2019-12-12 05:58:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!