One - One Code All

Blog Content

error: Undefined symbols for architecture x86_64

C/C++   2015-05-29 14:21:22

在make时报错:Undefined symbols for architecture x86_64


出现原因

出现这种错误时,基本上问题可以确定,就是工程在编译时找不到包含这个提示函数的库文件


原因有两个:

第一,存在源文件没有编译,和我这篇文章相同的情况Mac编译出错

第二,你的工程里需要用到某个第三方库,而这个库现在没有链接到你的工程下



上一篇:C/C++中关于#ifndef和#endif
下一篇:C/C++编译

The minute you think of giving up, think of the reason why you held on so long.