title: using curl in a win c++ application
body: <p>I'm trying to use curl from within my windows c++ app but keep running into problems.<br>
  I'm using visual studio 2013 on a windows 8.1 machine.<br>
  Here's what I've done so far:</p>
  
  <ol>
  <li>Cloned the <a href="https://github.com/bagder/curl" rel="nofollow noreferrer">repo from github</a> </li>
  <li>Built the libcurl project which produced three files: libcurl.dll, libcurl_imp.lib and libcurl_imp.exp</li>
  <li>In my app project I added the curl include directory to the Additional Include Directories</li>
  <li>Added the libcurl_imp.lib to the Additional Dependencies</li>
  <li>Built my project</li>
  </ol>
  
  <p>When I run my executable it says:</p>
  
  <pre><code>the program can't start because libcurl.dll is missing from your computer
  </code></pre>
  
  <p>I found a few things on it, but they solved it by adding the libcurl dll along with the exe, which isn't what I'm looking for as I want my executable to contain the libcurl so that it will work on machines without the need to have the dll.</p>
  
  <p>Any ideas?<br>
  Thanks.</p>
  
  <hr>
  
  <h1>Edit</h1>
  
  <p>The 2nd step is done pretty much straight forward, I just right clicked on the project (libcurl) and chose buiild.<br>
  Due to the comments I've rebuilt it after changing the Configuration Type to Static library, so now it only produces one file: libcurl.dll which, as far as I know not a static library...</p>
  
  <hr>
  
  <h1>2nd edit</h1>
  
  <p>I wasted too much time on getting http functionality, and based on the info which I found thanks to a comment here (<a href="https://stackoverflow.com/questions/3411259/using-libcurl-without-dll">using libcurl without dll</a>) I've decided to abandon this approach, and I found something which suits my needs perfectly and is simple to install/use: <a href="https://casablanca.codeplex.com/" rel="nofollow noreferrer">C++ REST SDK (codename "Casablanca")</a></p>