libcpr / cpr

C++ Requests: Curl for People, a spiritual port of Python Requests.
https://docs.libcpr.org/
Other
6.29k stars 904 forks source link

Call function causes error. Dll not found but present on the system #963

Closed mans5647 closed 9 months ago

mans5647 commented 9 months ago

The next static library usage, causes the following error: image. Code:

#include <Windows.h>
#include <iostream>
#include <cpr/cpr.h>

int main()
{
    auto p = cpr::Get(cpr::Url("https:/google.com"));
    return 0;
}

Error is also with "cpr.dll" when loading library, but pointer is became invalid :(((( System specs: Windows 10; Machine type x64; Installation type: CMake, version: 3.26.0-rc5; Ide: Visual Studio 2022; Compiler: cl.exe (msvc);

mans5647 commented 9 months ago

Problem solved: Dlls should be in executable file output directory