[Interest] Problem compiling boost::python code in Qt
Thiago Macieira
thiago.macieira at intel.com
Thu Sep 29 08:51:07 CEST 2016
On quinta-feira, 29 de setembro de 2016 09:24:41 PDT Kapil Gupta wrote:
> /usr/include/python3.5m/object.h:445:23: error: expected unqualified-id
> before ‘;’ token
> PyType_Slot *slots; /* terminated by slot==0. */
Hint: when the error message from the compiler makes no sense, check the
preprocessed output.
In this case, "slots" is the problem. Qt uses that word to indicate slots, so
it's #define'd to something.
Try this in your CMakeLists.txt:
add_definitions(-DQT_NO_KEYWORDS)
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list