Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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.


  • Qt Champions 2019

    @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.



  • @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.


Log in to reply