This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problem with libiconv
- From: Rifat Mahmud <rftmhmd at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 3 Nov 2010 16:53:42 +0600
- Subject: Problem with libiconv
I installed libiconv and used '#include<iconv.h>' in a source code.
After compiling gcc prints
/tmp/ccgsye0A.o: In function `main':
/home/rifat/Documents/Sources/test1.c:12: undefined reference to `libiconv_open'
/home/rifat/Documents/Sources/test1.c:18: undefined reference to `libiconv'
/home/rifat/Documents/Sources/test1.c:19: undefined reference to
`libiconv_close'
collect2: ld returned 1 exit status
How can I solve this problem. I probably didn't overwrite the system
iconv.h file, which is in /usr/local/include . I'm very much a rookie
in gcc, please help me out, Thank you.
Rifat Mahmud