Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

qt

qt5

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.

like image 280
Mitesh Patel Avatar asked Oct 05 '16 10:10

Mitesh Patel


1 Answers

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.

like image 50
Ole Wolf Avatar answered Oct 14 '22 00:10

Ole Wolf