2014-03-14 65 views
0

我有問題,我想不通爲什麼..連接器命令退出碼1(使用-v看看調用)和未定義的符號失敗架構

 
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) 
+1

您的項目中是否有名爲QButtonElement.m的文件?它是否分配給你的目標?或者也許有一些圖書館忘了添加那四個班級。 – rmaddy

+0

我想通了,即使我已經刪除了類,我仍然在代碼中使用QButtonElement .. – lhencq

回答

0

我想通了,我仍然在代碼中使用QButtonElement,即使我已經刪除了類。

相關問題