5

I am using libxml2 to parse xml but on compiling the solution it throws

fatal error : cannot open iconv.h

When i have placed the iconv.h there and rebuild again then again it throws other

error unable to open include file sys/cdefs.h.

i am ending up in a vicious circle . please help

Jeegar Patel
  • 26,264
  • 51
  • 149
  • 222
priya
  • 852
  • 18
  • 39

1 Answers1

3

Build and Install libiconv on your machine and it will work

MOHAMED
  • 41,599
  • 58
  • 163
  • 268
  • i have downloaded libinconv 1.7 but unable to find how to build or install it. i am using VS 2010 on windows 64 bit but want to compile application for 32 bit and hence using libxml2 for 32 bit – priya Sep 25 '12 at 09:00
  • @priya can you post link from where u have download that? – Jeegar Patel Sep 25 '12 at 09:08
  • @priya this could help you http://stackoverflow.com/questions/3429101/building-the-latest-iconv-and-libxml2-binaries-in-win32 – MOHAMED Sep 25 '12 at 09:13
  • hi, I have downloaded it from ftp://xmlsoft.org/libxml2/win32/iconv-1.9.2.win32.zip – priya Sep 25 '12 at 09:21
  • now i have successfully compiled my solution but on debugging it throws error : can't start zlib1.dll missing. please help – priya Sep 25 '12 at 09:22
  • Download Compile and install zlib – MOHAMED Sep 25 '12 at 09:26
  • hi,done with all this this link is really helpful for downloading all dependencies with libxml2: ftp://ftp.zlatkovic.com/libxml/ – priya Sep 25 '12 at 09:31