[問題] 關於libiconv的編譯問題

看板PttCurrent作者 (pizza)時間20年前 (2005/05/28 16:19), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/5 (看更多)
錯誤如下﹕ ../innbbsd/str_decode.c: In function `str_iconv': ../innbbsd/str_decode.c:180: warning: passing arg 2 of `libiconv' from incompatible pointer type /tmp/ccowphjB.o(.text+0x177): In function `str_iconv': : undefined reference to `libiconv_open' /tmp/ccowphjB.o(.text+0x1bd): In function `str_iconv': : undefined reference to `libiconv' /tmp/ccowphjB.o(.text+0x226): In function `str_iconv': : undefined reference to `libiconv_close' collect2: ld returned 1 exit status *** Error code 1 Stop. *** Error code 1 Stop. 一些有關的信息﹕ 已經裝了libiconv1.9.2 gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110) 請問是什麼問題﹐//bow -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.151.89.114

220.135.40.166 05/28, , 1F
compile 加 -liconv ??
220.135.40.166 05/28, 1F

211.151.89.114 05/28, , 2F
不好意思﹐能說具體點嗎﹐我第一次試著架bbs:)
211.151.89.114 05/28, 2F
文章代碼(AID): #12c2cQxd (PttCurrent)
討論串 (同標題文章)
文章代碼(AID): #12c2cQxd (PttCurrent)