Estoy intentando crear una aplicación de consola C++ en VS2008 usando la biblioteca curlpp estática. El código - que es ejemplo curlpp 00 - es la siguiente:Uso de 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;
}
que he descargado la fuente y tener mi ruta de inclusión señaló la fuente incluir archivos, pero cuando intento compilar, obtengo un bote lleno de errores en los archivos en línea del tipo:
definición de la función dllimport no permitieron
curlpp Seguramente mucha gente ha utilizado con VS2008 y yo estoy perdiendo algo obvio.
¿Podría alguien etiquetar esto con la etiqueta curlpp, por favor? –