如果這是一個愚蠢的問題,我很抱歉。但我試圖谷歌這一點,我什麼都找不到正確的方向。我只想了解我需要做些什麼來'設置'cdt來'理解'我的python.h include。在C++文件中包含Python.h CDT
錯誤的說法是這樣的:
#include <Python.h>
,但我也試過
#include "Python.h"
對CDT與側面的錯誤標誌迴應指出:
Multiple markers at this line
- fatal error: Python.h: No such file or
directory
- Unresolved inclusion: <Python.h>
我使用在Ubuntu 12.04上使用Eclipse CDT Juno。任何指針都會很棒!
哪裏是'Python.h'在文件系統和已將該路徑添加到編譯器包含路徑中? – trojanfoe 2013-03-27 22:21:26
不是我所知道的。你能指導我怎麼做嗎?我不知道如何找到路徑。 – eatonphil 2013-03-27 22:22:47