Re: [xml] iconv linker errors



On Thu, Oct 23, 2008 at 10:28:51PM -0700, Prashant R wrote:
I am trying to build libxml2 as  static library   on a embedded platform.
For this purpose I have created my own makefile .

 I am getting the following linker error in my application

*Undefined symbols:*

* "_iconv_close", referenced from:
*

      _xmlCharEncCloseFunc in libmy.a(encoding.o)

  If you look at xmlCharEncCloseFunc() you will find that
the iconv code will be used only if LIBXML_ICONV_ENABLED is defined.
In a nutshell when compiling your code there is an include where this
is defined which is included. There is no way for us to know
since you decided to do your own makefiles, so you will have to
debug the environment you created to know what header you included
defined it and fix the problem.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]