Использование curpp компилируется хорошо, но затем возникает ошибка выполнения. ⇐ C++

Программы на C++. Форум разработчиков
Anonymous
Использование curpp компилируется хорошо, но затем возникает ошибка выполнения.

Сообщение Anonymous »

Это пример кода, который я использую: curpp_example_00

Код: Выделить всё

#include 
#include 
#include 

using namespace curlpp::options;

int main(int, char **)
{
try
{
// That's all that is needed to do cleanup of used resources (RAII style).
curlpp::Cleanup myCleanup;

// Our request to be sent.
curlpp::Easy myRequest;

// Set the URL.
myRequest.setOpt("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 

Подробнее здесь: [url]https://stackoverflow.com/questions/79123076/using-curlpp-compiles-well-but-then-execution-error[/url]

Вернуться в «C++»