如何修复 Alpine Linux fatal error: stdio.h: No such file or directory
问题:
尝试在 Alpine Linux 上编译 C/C++ 程序或库时,你看到类似这样的错误消息
error.txt
/home/user/test.cpp:5:10: fatal error: stdio.h: No such file or directory
123 | #include <stdio.h>
| ^~~~~~~~~解决方案
使用以下命令安装 libc 头文件
install.sh
apk add musl-devCheck out similar posts by category:
Alpine Linux, C/C++, GCC Errors, Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow