我想將Python解釋器嵌入到Qt 5應用程序中。在Qt 5中嵌入Python
我在Qt的5工作的應用程序,但是,當我把
#include <Python.h>
在頂部(以下Qt的報頭)的彙編場所與
../sample/python3.3m/object.h:432:23: error: expected member name or ';' after declaration specifiers
PyType_Slot *slots; /* terminated by slot==0. */
~~~~~~~~~~~ ^
當我把Python的報頭中的Qt的上述它打破的標頭
In file included from ../Qt5.0.1/5.0.1/clang_64/include/QtGui/QtGui:59:
../Qt5.0.1/5.0.1/clang_64/include/QtGui/qpagedpaintdevice.h:63:57: error: expected '}'
A0, A1, A2, A3, A5, A6, A7, A8, A9, B0, B1,
^
/usr/include/sys/termios.h:293:12: note: expanded from macro 'B0'
#define B0 0
^
../Qt5.0.1/5.0.1/clang_64/include/QtGui/qpagedpaintdevice.h:62:19: note: to match this '{'
enum PageSize { A4, B5, Letter, Legal, Executive,
^
1 error generated.
請問,有沒有人知道爲什麼會發生這種情況?我可能是因爲Qt和Python定義了一些常見詞彙?我能做些什麼呢?