Xcode错误 - 架构x86_64的未定义符号:

时间:2014-03-22 15:02:09

标签: xcode

我在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)

1 个答案:

答案 0 :(得分:1)

非常常见的原因是使用仅为32位编译的静态库。