Wie man C++ "fatal error: curlpp/Easy.hpp: No such file or directory" auf Ubuntu behebt

Problem:

Beim Versuch, Ihr C++-Projekt zu kompilieren, sehen Sie eine Fehlermeldung wie

error.txt
minio-cpp/include/http.h:21:10: fatal error: curlpp/Easy.hpp: No such file or directory
   21 | #include <curlpp/Easy.hpp>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

Lösung

Sie müssen die curlpp-Bibliothek installieren, einen C++-Wrapper um libcurl. Auf Ubuntu oder Debian können Sie dies tun mit

install_curlpp.sh
sudo apt -y install libcurlpp-dev

Check out similar posts by category: C/C++, GCC Errors