title: Why Visual Studio 2015 couldn't find iconv.h, a file dependency of libxml2?
body: <p>I usually code in PHP, and new to Visual Studio and C, I followed the steps here — <a href="http://www.codeguru.com/cpp/data/data-misc/xml/article.php/c14893/Libxml2-Everything-You-Need-in-an-XML-Library.htm" rel="nofollow">http://www.codeguru.com/cpp/data/data-misc/xml/article.php/c14893/Libxml2-Everything-You-Need-in-an-XML-Library.htm</a> and downloaded three files — libxml, iconv, zlib. It says, iconv and zlib are dependencies for libxml2. </p>
  
  <p>My code is below:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;libxml/parser.h&gt;
  #include &lt;libxml/tree.h&gt;
  
  static void print_element_names(xmlNode * a_node)
  {
     xmlNode *cur_node = NULL;
  
     for (cur_node = a_node; cur_node; cur_node = cur_node-&gt;next) {
         if (cur_node-&gt;type == XML_ELEMENT_NODE) {
            printf("node type: Element, name: %s\n",
                 cur_node-&gt;name);
         }
         print_element_names(cur_node-&gt;children);
     }
  }
  
    int main(int argc, char **argv)
    {
      xmlDoc *doc = NULL;
      xmlNode *root_element = NULL;
  
      if (argc != 2)  return(1);
  
      LIBXML_TEST_VERSION    // Macro to check API for match with
                               // the DLL we are using
  
      /*parse the file and get the DOM */
      if (doc = xmlReadFile("http://www.w3schools.com/xml/note.xml", NULL, 0))     == NULL){
         printf("error: could not parse file %s\n", argv[1]);
         exit(-1);
         }
  
      /*Get the root element node */
      root_element = xmlDocGetRootElement(doc);
      print_element_names(root_element);
      xmlFreeDoc(doc);       // free document
      xmlCleanupParser();    // Free globals
      return 0;
      }
  </code></pre>
  
  <p>In my downloaded package, I have folders — iconv-1.9.2.win32, libxml2-2.7.8.win32, zlib-1.2.5.win32. [all these folders are lying side by side inside <code>workspace\libxml</code> folder]</p>
  
  <p>I downloaded above from here — <a href="ftp://ftp.zlatkovic.com/libxml/" rel="nofollow">ftp://ftp.zlatkovic.com/libxml/</a></p>
  
  <p>I entered the following path in Project Properties:</p>
  
  <ol>
  <li><p><code>Project &gt; Properties &gt; C/C++-&gt;General &gt; Additional Include Directories</code> — <code>workspace\libxml\libxml2-2.7.8.win32\libxml2-2.7.8.win32\include</code></p></li>
  <li><p><code>Project &gt; Properties &gt; Linker &gt; General &gt; Additional Library Directories</code> — <code>workspace\libxml\iconv-1.9.2.win32\iconv-1.9.2.win32\include</code></p></li>
  </ol>
  
  <p>I have no idea where to put <code>zlib</code> folder path. (first question)
  I built the solution in Visual Studio Professional 2015 (Windows 8, 64 bit) and got the following errors:</p>
  
  <ol>
  <li><p>cannot open source file "iconv.h"</p></li>
  <li><p>C1083    Cannot open include file: 'iconv.h': No such file or directory</p></li>
  </ol>
  
  <p>GTK: I created: File > Project > VC++ > Empty Project</p>
  
  <p>My questions are:</p>
  
  <ol>
  <li><p>Where should I put, which specific path from all the three folders (from the downloaded package)?</p></li>
  <li><p>I have to create standalone application, so I have to statically link the libxml2 Dll, am I going right?</p></li>
  </ol>