编译时出现undefined reference to `libiconv_open’的解决办法

简介:

编译时出现undefined reference to `libiconv_open’的解决办法

这是什么问题呢?其实是缺少libiconv库的原因。


1.libiconv包的下载路径

包的下载页面http://www.gnu.org/software/libiconv/


The latest release ishttps://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz

即可。


2.编译安装libiconv库

$tar zxvf libiconv-1.14.tar.gz

$cd libiconv-1.14

$ ./configure --prefix=/usr/local

$ make

$ make install


     本文转自phpervip 51CTO博客,原文链接:http://blog.51cto.com/phpervip/1944433,如需转载请自行联系原作者

相关文章
|
资源调度 前端开发
编译第三方前端项目时候出现Syntax Error: TypeError: Cannot set properties of undefined (setting ‘parent‘)
编译第三方前端项目时候出现Syntax Error: TypeError: Cannot set properties of undefined (setting ‘parent‘)
949 0
|
Linux C语言 计算机视觉
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
419 0
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
|
Linux 编译器 C语言
Linux环境下gcc编译过程中找不到名为pthread_create的函数的定义:undefined reference to `pthread_create‘
Linux环境下gcc编译过程中找不到名为pthread_create的函数的定义:undefined reference to `pthread_create‘
641 0
|
Ubuntu C语言
【ubuntu】2.c:(.text+0xd2): undefined reference to `pthread_create‘ collect2: error: ld returned
【ubuntu】2.c:(.text+0xd2): undefined reference to `pthread_create‘ collect2: error: ld returned
305 0
undefined reference to `major‘
undefined reference to `major‘
337 0
undefined reference to `gdk_monitor_get_scale_factor/gtk_widget_get_scale_factor‘
undefined reference to `gdk_monitor_get_scale_factor/gtk_widget_get_scale_factor‘
185 0
MAC编译出错:Undefined symbols for architecture x86_64: “_CFRelease“, referenced from:
MAC编译出错:Undefined symbols for architecture x86_64: “_CFRelease“, referenced from:
333 0
|
C++
undefined reference to `vtable for XXX‘
undefined reference to `vtable for XXX‘
257 0
NDK编译doubango时出现错误:undefined reference to ‘stderr‘
NDK编译doubango时出现错误:undefined reference to ‘stderr‘
216 0