Próbuję zbudować aplikację konsoli C++ w VS2008 przy użyciu statycznej biblioteki curlpp. Kod - co jest curlpp przykład 00 - jest następujący:Używanie CurlPP z vs2008
#include "stdafx.h"
#include <curlpp/curlpp.hpp>
#include <curlpp/Easy.hpp>
#include <curlpp/Options.hpp>
using namespace curlpp::options;
int main(int, char **)
{
try
{
// Our request to be sent.
curlpp::Easy myRequest;
// Set the URL.
myRequest.setOpt<Url>("http://example.com");
// Send request and get a result.
// By default the result goes to standard output.
myRequest.perform();
}
catch(curlpp::RuntimeError & e)
{
std::cout << e.what() << std::endl;
}
catch(curlpp::LogicError & e)
{
std::cout << e.what() << std::endl;
}
return 0;
}
Pobrałem źródła i mieć moje zawierać ścieżkę wskazał źródła zawierają pliki, ale gdy próbuję i skompilować, otrzymuję boatload błędy w plikach inline typu:
definicja funkcji dllimport niedozwolone
pewnością wiele ludzi wykorzystali curlpp z VS2008 i i 'm brakuje czegoś oczywiste.
Czy ktoś mógłby oznaczyć to tagiem curlpp? –