capcanaid
capcanaid

Reputation: 23

Xcode error - Undefined symbols for architecture x86_64:

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)

Upvotes: 0

Views: 870

Answers (1)

gnasher729
gnasher729

Reputation: 52632

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

Upvotes: 1

Related Questions