Bunch of Compiler Errors since update



  • I'm not sure what version of Qt I had before the update, I think it's a few months since my last update. Anyways, now my program won't compile because of some errors like this:

    g++ -c -pipe -std=c++11 -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iinclude -Iinclude/knowdesk -Ilibs -Ilibs -Ipodofo/include -Iexif/include -Iexif/include -isystem /usr/include/qt -isystem /usr/include/qt/QtQuick -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtQml -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -Ibuild -I/usr/lib/qt/mkspecs/linux-g++ -o build/controller.o src/controller.cpp
    In file included from /usr/include/qt/QtCore/qglobal.h:74:0,
    from /usr/include/qt/QtCore/qnamespace.h:37,
    from /usr/include/qt/QtCore/qobjectdefs.h:41,
    from /usr/include/qt/QtCore/qobject.h:40,
    from /usr/include/qt/QtCore/QObject:1,
    from src/controller.cpp:2:
    /usr/include/qt/QtCore/qurl.h:365:1: error: initializer provided for function
    Q_DECLARE_SHARED(QUrl)
    ^
    /usr/include/qt/QtGui/qkeysequence.h:215:1: error: initializer provided for function
    Q_DECLARE_SHARED(QKeySequence)
    ^
    /usr/include/qt/QtCore/qset.h:242:1: error: initializer provided for function
    Q_DECL_NOEXCEPT_EXPR(noexcept(qHashRangeCommutative(key.begin(), key.end(), seed)))
    ^
    /usr/include/qt/QtGui/qfont.h:317:1: error: initializer provided for function
    Q_DECLARE_SHARED(QFont)
    ^
    /usr/include/qt/QtCore/qdebug.h:142:1: error: initializer provided for function
    Q_DECLARE_SHARED(QDebug)
    ^

    I have aboslutely no idea what's wrong with my program. A new project compiles fine tho.
    Google has no useful results for this kind of error in this context.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.