Ich versuche, eine C++ - Konsolenanwendung in VS2008 mit der statischen curppp-Bibliothek zu erstellen. Der Code - die 00 curlpp Beispiel - ist wie folgt:Verwenden von CurlPP mit 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;
}
ich die Quelle heruntergeladen haben und habe meine Include-Pfad zu der Quelle wies Dateien enthalten, aber wenn ich versuche, und kompilieren, erhalte ich eine Schiffsladung Fehler in den Inline-Dateien des Typs:
Definition dllimport Funktion nicht
erlaubtSicherlich viele Leute mit VS2008 verwendet haben curlpp und ich bin etwas fehlt offensichtlich.
Könnte jemand dies bitte mit curppp-Tags versehen? –