title: Using CurlPP with vs2008
body: <p>I'm trying to build a C++ console app in VS2008 using the static curlpp library. The code - which is curlpp example 00 - is as follows:</p>
  
  <pre><code>#include "stdafx.h"
  
  
  #include &lt;curlpp/curlpp.hpp&gt;
  #include &lt;curlpp/Easy.hpp&gt;
  #include &lt;curlpp/Options.hpp&gt;
  
  
  using namespace curlpp::options;
  
  int main(int, char **)
  {
    try
    {
  
      // Our request to be sent.
      curlpp::Easy myRequest;
  
      // Set the URL.
      myRequest.setOpt&lt;Url&gt;("http://example.com");
  
      // Send request and get a result.
      // By default the result goes to standard output.
      myRequest.perform();
    }
  
    catch(curlpp::RuntimeError &amp; e)
    {
      std::cout &lt;&lt; e.what() &lt;&lt; std::endl;
    }
  
    catch(curlpp::LogicError &amp; e)
    {
      std::cout &lt;&lt; e.what() &lt;&lt; std::endl;
    }
  
    return 0;
  }
  </code></pre>
  
  <p>I've downloaded the source and have my include path pointed to the source include files, but when I try and compile, I get a boatload of errors in the inline files of the type:</p>
  
  <p>definition of dllimport function not allowed</p>
  
  <p>Surely lots of folks have used curlpp with vs2008 and I'm missing something obvious.</p>