Undefined symbols for architecture x86_64 问题

Undefined symbols for architecture x86_64:
  "_print", referenced from:
      _main in ccIIQ2ic.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status



md,头疼。

看这里
http://stackoverflow.com/questions/5765555/c-undefined-symbols-for-architecture-x86-64
会恍然大悟的。。。

然后自己做个实验:
故意输错:printf -> print
就会报上面的错,而无法通过编译。

md,这错,居然这样提示,太诡异了吧?

猜你喜欢

转载自macleo.iteye.com/blog/1545271