链接器命令失败,并显示退出代码1(使用-v查看调用)和体系结构的未定义符号 [英] linker command failed with exit code 1 (use -v to see invocation) and Undefined symbols for architecture
本文介绍了链接器命令失败,并显示退出代码1(使用-v查看调用)和体系结构的未定义符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有问题,我不知道为什么.
i have problem, and i can't figure out why..
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_QButtonElement", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_QEntryElement", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_QRootElement", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_QSection", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
推荐答案
我知道了,即使我已经删除了该类,我仍然在代码中使用了QButtonElement.
I figured it out, i still used the QButtonElement in code even if i already deleted the class..
这篇关于链接器命令失败,并显示退出代码1(使用-v查看调用)和体系结构的未定义符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文