[xml] Building libxml2 with static iconv.lib on windows




I am trying to build libxml2-2.6.30 on windows. I configure it with 
cscript configure.js compiler=msvc vcmanifest=yes static=yes debug=no \
   include=<iconv include dir> \
   lib=<iconv lib dir> 

If lib is set to dir containing the DLL import library version of iconv then the build succeeds. But if its 
set to dir containing the static library version of iconv then the build fails with 

   Creating library bin.msvc\libxml2.lib and object bin.msvc\libxml2.exp
encoding.obj : error LNK2019: unresolved external symbol __imp__libiconv referenced in function 
_xmlIconvWrapper
encoding.obj : error LNK2019: unresolved external symbol __imp__libiconv_close referenced in function 
_xmlCharEncCloseFunc
encoding.obj : error LNK2019: unresolved external symbol __imp__libiconv_open referenced in function 
_xmlFindCharEncodingHandler
bin.msvc\libxml2.dll : fatal error LNK1120: 3 unresolved externals



      



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