Xcode 错误 - 架构 x86_64 的未定义符号: [英] Xcode error - Undefined symbols for architecture x86_64:

查看:40
本文介绍了Xcode 错误 - 架构 x86_64 的未定义符号:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 XCode 中有这个错误:

I have this error in XCode:

Undefined symbols for architecture x86_64:
"Parser::Parser(char const*)", referenced from:
  ___cxx_global_var_init in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

推荐答案

很常见的原因是使用仅针对 32 位编译的静态库.

Very common reason is using a static library that is compiled for 32 bit only.

这篇关于Xcode 错误 - 架构 x86_64 的未定义符号:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆