Problem with libiconv

Rifat Mahmud rftmhmd@gmail.com
Wed Nov 3 10:53:00 GMT 2010


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



More information about the Gcc-help mailing list