0

I am trying to compile the source codes for a simulator which uses C++ and Python. However, it gives me this error:

Error: can't find Python.h header in ['path-to-my-python/include/python2.6']
Install Python headers (package python-dev on Ubuntu and RedHat)

However, I can see that the header file is there and I have set the path to it. How can I fix or diagnosis the problem?

4

2 回答 2

0

当我在谷歌搜索Error: can't find Python.h header in 时,第一个链接将我带到:

http://comments.gmane.org/gmane.comp.emulators.m5.users/10463

回到 5 月份,有人遇到了与您完全相同的问题,并且有人解释了如何解决它。

于 2012-11-13T04:54:11.190 回答
0

你的 path-to-my-python 是相对路径吗?如果是这样,也许编译器/make/builder 正试图转到不同的目录,因此找不到它。

你在用什么?制作?缺点?查看编译器/链接器标志是什么,并查看该路径的执行位置。这会给你一个想法。

于 2012-11-13T04:58:24.410 回答