Re: [xml] Unable to link in Mac OS 10.5



On Sep 15, 2008, at 1:32 PM, Prashanth R wrote:

Hi , 

I am trying to create a static library ( for which I have no problems) . I am using this code in another static library that is being linked into the main application. 

I am using XCODE to build and am getting 3 linker errors 
Undefined symbols:
  "_iconv_close", referenced from:
      _xmlCharEncCloseFunc in libiSL.a(encoding.o)
      _xmlCharEncCloseFunc in libiSL.a(encoding.o)
      _xmlFindCharEncodingHandler in libiSL.a(encoding.o)
      _xmlFindCharEncodingHandler in libiSL.a(encoding.o)
  "_iconv_open", referenced from:
      _xmlFindCharEncodingHandler in libiSL.a(encoding.o)
      _xmlFindCharEncodingHandler in libiSL.a(encoding.o)
      _xmlFindCharEncodingHandler in libiSL.a(encoding.o)
      _xmlFindCharEncodingHandler in libiSL.a(encoding.o)
  "_iconv", referenced from:
      _xmlIconvWrapper in libiSL.a(encoding.o)


Anyone have any clues ? 

For libxml, I think that "--with-iconv" is the default when you run ./configure, so it's expecting to link against the iconv library. You disable that by specifying --without-iconv on the configure command line.

- Rush



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