Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Another error: symbol(s) not found for architecture x86_64 question
Qt 6.11 is out! See what's new in the release blog

Another error: symbol(s) not found for architecture x86_64 question

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.0k Views
  • 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.
  • G Offline
    G Offline
    Graveling
    wrote on last edited by
    #1

    Mac, Sierra 10.12.4
    I've seen quite a few posts about this, but none specific to my issue. I wouldnt be asking if I hadnt spent the last two days reading various posts trying to figure it out.
    One post said to look at the linker and see what it said but I have no idea what its saying:

    Undefined symbols for architecture x86_64:
    "MainWindow::on_ExitButton_clicked()", referenced from:
    MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in moc_mainwindow.o
    "MainWindow::on_btPrice_linkActivated(QString const&)", referenced from:
    MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in moc_mainwindow.o
    ld: symbol(s) not found for architecture x86_64

    Can anyone tell me what is going on here? The project compiled perfectly at one stage, then it didnt.

    jsulmJ 1 Reply Last reply
    0
    • G Graveling

      Mac, Sierra 10.12.4
      I've seen quite a few posts about this, but none specific to my issue. I wouldnt be asking if I hadnt spent the last two days reading various posts trying to figure it out.
      One post said to look at the linker and see what it said but I have no idea what its saying:

      Undefined symbols for architecture x86_64:
      "MainWindow::on_ExitButton_clicked()", referenced from:
      MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in moc_mainwindow.o
      "MainWindow::on_btPrice_linkActivated(QString const&)", referenced from:
      MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in moc_mainwindow.o
      ld: symbol(s) not found for architecture x86_64

      Can anyone tell me what is going on here? The project compiled perfectly at one stage, then it didnt.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Graveling What did you change before it stopped working?
      Most probably you just need to do a complete rebuild.
      So, delete the build folder, run qmake and build.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Graveling
        wrote on last edited by
        #3

        @jsulm said in Another error: symbol(s) not found for architecture x86_64 question:

        I've gone back to the code that was working and still getting the error.

        Also did as you suggested, deleted the build directory.. still no go.

        A mate and I agree it could be something in the ui.

        Thanks heaps for the help, you helped me narrow it down.

        Edit: seems I hadnt called a method.

        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 Extensions
        • Unsolved