看板Maple
标 题Re: 修正RFC2045/2047时 遇到的问题
发信站清华资讯(枫桥驿站) (Sat Jun 21 14:54:15 2003)
转信站Ptt!news.cs.nthu!maple
※ 引述《itoc (^==^;)》之铭言:
> ※ 引述《binbin (冰冰)》之铭言:
> > ../lib/libdao.a(str_decode.o): In function `str_iconv':
> > str_decode.o(.text+0x1e): undefined reference to `iconv_open'
> > str_decode.o(.text+0x69): undefined reference to `iconv'
> > str_decode.o(.text+0xd2): undefined reference to `iconv_close'
> 没装 libiconv
在修正时 已有安装libiconv-1.8_2 但还是..... 不行
在google找到 dopin大的文章
http://bbs.nsysu.edu.tw/txtVersion/boards/installbbs/M.1050347596.A.html
// 如果 很不幸的出现如以下的讯息:
str_decode_m3.o: In function `str_decode_M3':
str_decode_m3.o(.text+0x332): undefined reference to `libiconv_open'
str_decode_m3.o(.text+0x38d): undefined reference to `libiconv'
str_decode_m3.o(.text+0x40e): undefined reference to `libiconv_close'
str_decode_m3.o: In function `str_iconv_m3':
str_decode_m3.o(.text+0x4ee): undefined reference to `libiconv_open'
str_decode_m3.o(.text+0x539): undefined reference to `libiconv'
str_decode_m3.o(.text+0x5a2): undefined reference to `libiconv_close'
% ve str_decode_m3.c
#include
#include
#include
#include
#undef ICONV_OK
// 这样就不会呼叫 iconv 相关函式
不同的BBS系统 程式码不一样 感觉问题应该差不多 弟乱尝试了undef 还是出现error
哇~~~
--
※ Origin: 枫桥驿站<bbs.cs.nthu.edu.tw> ◆ From: 229047.D18-229.ncu.edu.tw