如何修复 Ubuntu 上的 C++ fatal error: curlpp/Easy.hpp: No such file or directory
问题:
尝试编译 C++ 项目时,你看到类似这样的错误消息
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.解决方案
你需要安装 curlpp 库,它是 libcurl 的 C++ 封装。在 Ubuntu 或 Debian 上,你可以使用
install_curlpp.sh
sudo apt -y install libcurlpp-devCheck out similar posts by category:
C/C++, GCC Errors
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow