파이썬 인터프리터를 Qt 5 애플리케이션에 임베드하고 싶습니다.Qt 5에 파이썬 포함하기
나는 Qt는 5에서 작동하는 응용 프로그램을하지만 난 Qt는 위의 파이썬 헤더를 넣을 때
../sample/python3.3m/object.h:432:23: error: expected member name or ';' after declaration specifiers
PyType_Slot *slots; /* terminated by slot==0. */
~~~~~~~~~~~ ^
로 컴파일 나누기 (Qt는 헤더 아래) 상단에
#include <Python.h>
을 넣을 때 머리글이 깨져서
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이 일반적인 단어를 정의하기 때문에 나는있을 수 있습니까? 그것에 대해 무엇을 할 수 있습니까?