मैं स्थिर curlpp लाइब्रेरी का उपयोग कर VS2008 में एक C++ कंसोल ऐप बनाने की कोशिश कर रहा हूं।बनाम 2008 के साथ CurlPP का उपयोग
#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;
}
मैं स्रोत डाउनलोड किया है और मेरी शामिल पथ स्रोत की ओर इशारा किया फ़ाइलों में शामिल हैं, लेकिन जब मैं कोशिश करते हैं और संकलन, मैं बहुत सारी मिलता है है: कोड - - जो curlpp उदाहरण 00 है इस प्रकार है प्रकार के इनलाइन फ़ाइलों में त्रुटियों:
dllimport समारोह की परिभाषा VS2008 साथ
निश्चित रूप से बहुत सारे लोग जो इस्तेमाल किया है curlpp अनुमति नहीं है और मैं कुछ स्पष्ट याद कर रहा हूँ।
क्या कोई इसे curlpp टैग से टैग कर सकता है, कृपया? –