免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4272 | 回复: 6
打印 上一主题 下一主题

why can't find out iconv.h head file [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-08 11:28 |只看该作者 |倒序浏览
I upgrade libiconv through tar2 package to install,  after upgrade finish, I do install Glib library occur error which it cant' found iconv.h file. please tell me how to fix it? thanks

[ 本帖最后由 zenghp97 于 2008-9-8 12:13 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-09-08 12:52 |只看该作者
check related path settings.

论坛徽章:
0
3 [报告]
发表于 2008-09-08 14:35 |只看该作者
I am default setting to install libiconv package. install step as follows:
1. decompression bz2 file.
2. excute ./configure command
3. excute make command
4. excute make check command
5. excute make install command

After those command have been excuted, I need setting what  related path and how to setting,  when install GLib pakcge before? thanks.

论坛徽章:
0
4 [报告]
发表于 2008-09-08 14:44 |只看该作者
try to find the iconv.h

find / -name iconv.h



When compiling, you can try pass "-I dir" to gcc, in order to include the head file.
(dir is the path of your iconv.h)




man gcc

-I dir
           Add the directory dir to the list of directories to be searched for header files.  Directories named by -I are searched before the standard system include directories.  If the directory dir is a standard system include directory, the option is ignored to ensure that the default search order for system directories and the special treatment of system headers are not defeated .

[ 本帖最后由 hahasasa 于 2008-9-8 14:48 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2008-09-08 15:52 |只看该作者
I know the meaning of -I dir, I unknow why need setting the -I dir after install libiconv package? there has been seted system path when use default install mode?

论坛徽章:
0
6 [报告]
发表于 2008-09-08 15:57 |只看该作者
which directory is your iconv.h in ?
could you show us ?

论坛徽章:
0
7 [报告]
发表于 2008-09-08 22:24 |只看该作者
The bellow two direcotry have the iconv.h file in my pc.

-rw-r--r--    1 root     root          809 2003-02-04  /usr/lib/dietlibc/include/iconv.h
-rw-r--r--    1 root     root         1776 2003-03-14  /usr/include/iconv.h
-rw-r--r--    1 root     root         8303  9月  8 21:41 /usr/local/include/iconv.h


how to setting the head file for compile GLib package?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP