Including Python.h in Qt application causes undefined reference to Qt functions
问题 I'd like to include Python.h (from the Python distribution in my Anaconda folder) in my project to call a python script. The program compiles fine when I don't include python. But as soon as I do, I get undefined reference errors to functions implemented in Qt classes (so not my own functions!). The python version I'd like to include is 3.5.5 . The part that confuses me most is undefined reference to QJsonValue::toString() . This method is implemented inline so how can its implementation not