This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]