我是靠谱客的博主 忧郁衬衫,这篇文章主要介绍Undefined symbols for architecture x86_64:的一种解决办法,现在分享给大家,希望可以做个参考。

Undefined symbols for architecture x86_64:

  "_iconv_open", referenced from:

      _main in main.o

  "_iconv", referenced from:

      _main in main.o

  "_iconv_close", referenced from:

      _main 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)



后来发现xcode就算使用系统自带的头文件也需要导入lib(sqlite和iconv,Mac都自带),也就是说,单单包含头文件是不够的,还需要加入lib或Framework,具体方法如下:
xcode <wbr>4 <wbr>导入lib,framework的方法,和undefined <wbr>symbols <wbr>for <wbr>architecture <wbr>x86_64:的一种解决办法
加上以后,一切正常。

最后

以上就是忧郁衬衫最近收集整理的关于Undefined symbols for architecture x86_64:的一种解决办法的全部内容,更多相关Undefined内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(129)

评论列表共有 0 条评论

立即
投稿
返回
顶部