链接器命令失败,退出代码为1(使用-v查看调用)和未定义的符号用于体系结构

时间:2014-03-14 03:19:45

标签: objective-c xcode5 linker-errors

我有问题,我无法弄明白为什么......

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 个答案:

答案 0 :(得分:0)

我想通了,即使我已经删除了这个类,我仍然在代码中使用了QButtonElement ..