“_OBJC_CLASS_$_DBAccess”,引用自:
尝试构建我的程序并收到以下错误。看不到任何明显的东西。我所有的导入语句似乎都是正确的:
未定义的符号: “_OBJC_CLASS_$_DBAccess”,引用自: LocationsViewController.o 中的 objc-class-ref-to-DBAccess ld:未找到符号 Collect2: ld 返回 1 退出状态
Trying to build my program and getting the following error. Don't see anything obvious. All my import statements seem correct:
Undefined symbols:
"_OBJC_CLASS_$_DBAccess", referenced from:
objc-class-ref-to-DBAccess in LocationsViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这类问题通常意味着链接器找不到该类(如果您的导入错误,您只会收到词法警告)。
检查以确保您的项目正确链接到使用
DBAccess
的任何项目,并且输出中包含DBAccess.m/h
。This sort of problem usually means that the linker isn't finding the class (if your imports are wrong you only get a lexing warning).
Check to make sure that your project is properly linked to whatever uses
DBAccess
and thatDBAccess.m/h
is included in the output.