bug : Undefined symbols for architecture x86_64 个案分析

caoyangdeMacBook-Air:SimonC SimonCao$ gcc  myhomework.c -o myhomework

Undefined symbols for architecture x86_64:

  "_findAllDirs", referenced from:

      _finaAllDirs in myhomework-73f0d9.o

      _main in myhomework-73f0d9.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)



其实就是定义的名称写错了才导致的问题。

网上很多同样的提问者,可以参考下这一情况。

你可能感兴趣的:(C)