Sto provando a creare un'app per console C++ in VS2008 utilizzando la libreria static curlpp. Il codice - che è esempio curlpp 00 - è il seguente:Utilizzo di CurlPP con 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;
}
ho scaricato la fonte e il mio percorso di inclusione indicò la fonte includere i file, ma quando provo e compilare, ottengo una barca di errori nei file in linea del tipo:
definizione della funzione dllimport non ammessi
curlpp Sicuramente un sacco di persone hanno utilizzato con VS2008 e mi manca qualcosa di ovvio.
Qualcuno potrebbe taggarlo con tag curlpp, per favore? –