Missing symbol for architecture error
-
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
@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?
-
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.
-
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.
-
Have a good night :)
-
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 :)