msdos_conv_utf8.c:(.text+0x3c0): undefined reference to `iconv'

ruizx ruizx at
Mon Aug 12 01:33:26 UTC 2013

Hi all,
I want RTEMS dos file system  support Chinese language, 
the git resposity code now is supporting UTF-8, I apply the newest patchs.
But when I compling the application, 
the error"msdos_conv_utf8.c:(.text+0x3c0): undefined reference to `iconv'" appeared.
The commit message write "Iconv support must be activated during the build of the tool chain for these conversion methods".
Is that means I should rebuild my cross compiler?

My cross comipler configuration is the above:

[ruizx at localhost hello]$ powerpc-rtems4.10-gcc -v
Configured with: ../gcc-4.4.7/configure --prefix=/opt/rtems-4.10 --bindir=/opt/rtems-4.10/bin --exec_prefix=/opt/rtems-4.10 --includedir=/opt/rtems-4.10/include --libdir=/opt/rtems-4.10/lib --libexecdir=/opt/rtems-4.10/libexec --mandir=/opt/rtems-4.10/share/man --infodir=/opt/rtems-4.10/share/info --datadir=/opt/rtems-4.10/share --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=powerpc-rtems4.10 --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs --enable-threads --disable-lto --disable-plugin --enable-newlib-io-c99-formats --enable-languages=c,c++

Thanks & Best regards,
Rui Zhengxin

More information about the users mailing list