title: How do I build and link libCurl in VS project
body: <p>I am trying to use cURL in a C++ project I am working on in VS2010.</p>
  
  <p>I downloaded the latest cURL source and I am building the solution included in the archive. When I build this project the only output lib appears to be "libcurld_imp.lib". I was expecting a "libcul.lib". In any case I have pointed VS to the include directory where the headers live and added the above mentioned lib to my linker's dependencies. Finally, I add the folder path of this "libcurld_imp.lib" to the links additional libraries search locations.</p>
  
  <p>I cannot build my project because of the following linker error:</p>
  
  <p>error LNK1104: cannot open file 'libcurld_imp.lib'</p>
  
  <p>This file does exist in a folder that I added to the linker's additional libraries search path. What am I missing? Thanks</p>
  
  <p><strong>update</strong></p>
  
  <p>Ok.. So was able to get a libcurl.lib file by editing the libcurl proj. The default build settings were set to output a DLL. I changed this to as static library. Now that I have a libcurl.lib I am getting these linking errors:</p>
  
  <p>Error   3   error LNK2019: unresolved external symbol _<em>imp</em>_curl_easy_setopt referenced in function _main
  Error   2   error LNK2019: unresolved external symbol _<em>imp</em>_curl_easy_perform referenced in function _main</p>
  
  <p>Anyone know how to link this friggen thing?</p>
  
  <p><strong>Another update</strong></p>
  
  <p>The documentation included in the source download includes a file, "build.windows". The directions say to build the lib using the following command:</p>
  
  <p>nmake /f makefile.vc mode= </p>
  
  <p>I have done this using "static" as my mode and "VC=10" as my option. This builds the library but it is called libcurl_a.lib. Linking to this lib gives the same errors :( 
  Thanks</p>