首页 >后端开发 >php教程 >undefined reference to libiconv_open c++ undefined reference undefined reference to sqrt undefined reference to mai

undefined reference to libiconv_open c++ undefined reference undefined reference to sqrt undefined reference to mai

WBOY
WBOY原创
2016-07-29 08:48:321413浏览

ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
/home/king/php-5.2.13/ext/iconv/iconv.c:2491: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

 解决方法:

make ZEND_EXTRA_LIBS='-liconv'

ln -s /usr/local/lib/libiconv.so.2 /usr/lib64/

以上就介绍了undefined reference to libiconv_open,包括了reference,undefined方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn