首页 文章

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

提问于
浏览
0

我有问题,我无法弄清楚为什么..

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

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

相关问题