Unsolved Missing symbol for architecture error
-
@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?
-
@SGaist How do I check that?
-
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.
-
@SGaist Busted. Time to sleep.
-
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 :)