title: Unresolved symbols when linking a program using libcurl
body: <p>I know this is programming questions but I'm just frustrated trying to figure out what I'm doing wrong..</p>
  
  <p>I'm using visual studio 2010 and followed all the steps here: <a href="http://curl.haxx.se/libcurl/c/visual_studio.pdf" rel="noreferrer">http://curl.haxx.se/libcurl/c/visual_studio.pdf</a></p>
  
  <p>When I try to compile my solution I keep getting this error:</p>
  
  <pre><code>1&gt;------ Build started: Project: LibCurl, Configuration: Debug Win32 ------
  1&gt;LibCurl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function _main
  1&gt;LibCurl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_perform referenced in function _main
  1&gt;LibCurl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_setopt referenced in function _main
  1&gt;LibCurl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_init referenced in function _main
  1&gt;C:\Users\Kyle\Documents\Visual Studio 2010\libcurl\VisualStudio\LibCurl\Debug\LibCurl.exe : fatal error LNK1120: 4 unresolved externals
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>Source:</p>
  
  <pre><code>// LibCurl.cpp : Defines the entry point for the console application.
  //
  
  #include "stdafx.h"
  #include &lt;stdio.h&gt;
  #include &lt;curl/curl.h&gt;
  
  int main(void)
  {
    CURL *curl;
    CURLcode res;
  
    curl = curl_easy_init();
    if(curl) {
      curl_easy_setopt(curl, CURLOPT_URL, "http://google.com");
      res = curl_easy_perform(curl);
  
      /* always cleanup */ 
      curl_easy_cleanup(curl);
    }
    return 0;
  }
  </code></pre>