Home > Backend Development > PHP Tutorial > 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
Release: 2016-07-29 08:48:32
Original
1412 people have browsed it

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
Copy after login

Solution:

make ZEND_EXTRA_LIBS='-liconv'

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

The above introduces undefined reference to libiconv_open, including the content of reference and undefined. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template