问题
I am using Qt 5.7 on Ubuntu 16 LTS machine.
I get this error:
(.qtversion[qt_version_tag]+0x0):-1: error: undefined reference to `qt_version_tag'
This error comes only when I use SDL libraries.
回答1:
I realize this is an old thread but you may be able to avoid it by defining QT_NO_VERSION_TAGGING; that is, by passing the option:
-DQT_NO_VERSION_TAGGING
to gcc.
来源:https://stackoverflow.com/questions/39871879/why-do-i-get-this-error-undefined-reference-to-qt-version-tag