如何修复 Ubuntu 上的 C++ fatal error: INIReader.h: No such file or directory
问题:
尝试编译 C++ 项目时,你看到类似这样的错误消息
ini_error.txt
minio-cpp/include/providers.h:19:10: fatal error: INIReader.h: No such file or directory
19 | #include <INIReader.h>
| ^~~~~~~~~~~~~
compilation terminated.解决方案
你需要安装 inih 库。在 Ubuntu 或 Debian 上,你可以使用
install_libinih.sh
sudo apt -y install libinih-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