Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Bunch of Compiler Errors since update
Qt 6.12 LTS is out! See what's new in the release blog

Bunch of Compiler Errors since update

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 649 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved