Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Missing symbol for architecture error
Forum Updated to NodeBB v4.3 + New Features

Missing symbol for architecture error

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 2 Posters 1.2k 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.
  • ironsniperI ironsniper

    hey everyone i am trying to compile a crypto coin wallet and am getting the following here and i cannot figureout how to fix it so it does not happen, i am using qt4 and qt creator to compile this

    Undefined symbols for architecture x86_64:
    "Db::verify(char const*, char const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >, unsigned int)", referenced from:
    CDBEnv::Verify(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool (
    )(CDBEnv&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)) in db.o
    CDBEnv::Salvage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, std::__1::vector<std::__1::pair<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >, std::__1::allocator<std::__1::pair<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > > >&) in db.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: *** [thecreed-Qt.app/Contents/MacOS/thecreed-Qt] Error 1
    22:47:07: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project thecreed-qt (kit: Desktop)
    When executing step "Make"
    22:47:07: Elapsed time: 00:09.

    any help would be great

    BoosterB Offline
    BoosterB Offline
    Booster
    wrote on last edited by SGaist
    #1

    @ironsniper
    Hey there, I have a similar problem as this thread on a similar machine. I was working on two projects when suddenly without any error. I got linker issues I cannot figure out as well.

    Applications/QtCreator/5.6/clang_64/bin/uic ../project/widget.ui -o ui_widget.h
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../project -I. -I/Applications/QtCreator/5.6/clang_64/lib/QtWidgets.framework/Headers -I/Applications/QtCreator/5.6/clang_64/lib/QtGui.framework/Headers -I/Applications/QtCreator/5.6/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Applications/QtCreator/5.6/clang_64/mkspecs/macx-clang -F/Applications/QtCreator/5.6/clang_64/lib -o main.o ../project/main.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../project -I. -I/Applications/QtCreator/5.6/clang_64/lib/QtWidgets.framework/Headers -I/Applications/QtCreator/5.6/clang_64/lib/QtGui.framework/Headers -I/Applications/QtCreator/5.6/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Applications/QtCreator/5.6/clang_64/mkspecs/macx-clang -F/Applications/QtCreator/5.6/clang_64/lib -o widget.o ../project/widget.cpp
    /Applications/QtCreator/5.6/clang_64/bin/moc -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -D__APPLE__ -D__GNUC__=4 -D__APPLE_CC__ -I/Applications/QtCreator/5.6/clang_64/mkspecs/macx-clang -I/Users/User/Desktop/Studies/SVN/project/Converter/project -I/Applications/QtCreator/5.6/clang_64/lib/QtWidgets.framework/Headers -I/Applications/QtCreator/5.6/clang_64/lib/QtGui.framework/Headers -I/Applications/QtCreator/5.6/clang_64/lib/QtCore.framework/Headers -I. -F/Applications/QtCreator/5.6/clang_64/lib ../project/widget.h -o moc_widget.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../project -I. -I/Applications/QtCreator/5.6/clang_64/lib/QtWidgets.framework/Headers -I/Applications/QtCreator/5.6/clang_64/lib/QtGui.framework/Headers -I/Applications/QtCreator/5.6/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Applications/QtCreator/5.6/clang_64/mkspecs/macx-clang -F/Applications/QtCreator/5.6/clang_64/lib -o moc_widget.o moc_widget.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -stdlib=libc++ -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wl,-rpath,/Applications/QtCreator/5.6/clang_64/lib -o project.app/Contents/MacOS/project main.o widget.o moc_widget.o -F/Applications/QtCreator/5.6/clang_64/lib -framework QtWidgets -framework QtGui -framework QtCore -framework OpenGL -framework AGL
    Undefined symbols for architecture x86_64:
    "Widget::on_PTE_Output_textChanged()", referenced from:
    Widget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in moc_widget.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: *** [project.app/Contents/MacOS/project] Error 1
    22:12:31: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.
    Fehler beim Erstellen/Deployment des Projekts project (Kit: Desktop Qt 5.6.0 clang 64bit)
    Bei der Ausführung von Schritt "Make"
    22:12:31: Verstrichene Zeit: 00:04.

    Did you solve the problem yet?

    1 Reply Last reply
    0
    • SGaistS SGaist

      Hi and welcome to devnet,

      Are you using C++11 ?

      BoosterB Offline
      BoosterB Offline
      Booster
      wrote on last edited by
      #2

      @SGaist How do I check that?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        Nope that's not the same problem at all. The error suggest that you didn't implement the on_PTE_Output_textChanged slot.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        BoosterB 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi and welcome to devnet,

          Nope that's not the same problem at all. The error suggest that you didn't implement the on_PTE_Output_textChanged slot.

          BoosterB Offline
          BoosterB Offline
          Booster
          wrote on last edited by
          #4

          @SGaist Busted. Time to sleep.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Have a good night :)

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              I've moved your question to its own thread to keep the original thread clearer.

              I'll let you mark it as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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