Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Solved] Old/deleted reference moc_mainwindow.o causing 'Undefined symbols for architecture x86_64' error

[Solved] Old/deleted reference moc_mainwindow.o causing 'Undefined symbols for architecture x86_64' error

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 1.7k 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.
  • L Offline
    L Offline
    Logical1
    wrote on last edited by
    #1

    Update/Solved: In my post I mention the files are exactly the same; however, I was playing around w/ my version control during the time and it's possible that it reverted to the older file.
    Original post:

    Forgive me if my terminology is wrong, I'm brand new to Qt.

    I'm getting the following error on compile: Error: symbol(s) not found for architecture x86_64.
    I know what is causing the error and have fixed it; however, I don't know what happend or why.

    Compiler Output
    @ld: warning: directory not found for option '-F/Applications/Qt/5.0.2/clang_64/qtbase/lib'
    Undefined symbols for architecture x86_64:

    • "MainWindow::on_actionExit_triggered()", referenced from:
      MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in moc_mainwindow.o*
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make: *** [HSI_Signature_Library.app/Contents/MacOS/HSI_Signature_Library] Error 1
      22:21:11: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project HSI_Signature_Library (kit: Desktop Qt 5.0.2 clang 64bit)
      When executing step 'Make'@

    Line 3: * "MainWindow::on_actionExit_triggered()", referenced from:

    on_actionExit_triggered() was an "exit" button that I put onto the form, then deleted it. It is no where in my project, yet is creating this error. I've searched everywhere in my project for it, and I'm sure I deleted it. I confirmed this is the problem by creating a new project, importing the _exact _same files and it compiled with no problem.

    Can someone explain what happened in this project? Is on_actionExit_triggered() cashed somewhere or something? Or am I missing/not understanding something else?

    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