In the process of compiling your cpp file in linux under QT 5 or more you may receive such a weird fatal error message. If you are wondering where and how to start solving it here is the solution for you. Just go to your projectFile.pro and add the following on the top (before headers):
Special credit goes to AB Bolim stackoverflow
Hope you enjoy it
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
Special credit goes to AB Bolim stackoverflow
Hope you enjoy it