Why do I get this “error: undefined reference to `qt_version_tag' ”?

穿精又带淫゛_ 提交于 2020-06-10 03:52:22

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!