添加参数--target=x86_64-pc-mingw32,如: clang --target=x86_64-pc-mingw32 pe12-2a.c pe12-2b.c -o target.exe 受下面帖子的启发: Clang+mingw注意事项_IT帮主的博客-优快云博客_clang mingw Clang:fatal error:'stdio.h' file not found的解决方法 转载 ...https://blog.youkuaiyun.com/5hongbing/article/details/79815969 解决clang"fatal error: 'stdio.h' file not found"问题_SorelCheung的博客-优快云博客_clang stdio.h先看一下下面这个”hello world”程序#include int main(void){ printf("hello!\n"); return 0;}在Windows下使用”gcc test.c”编译这个程序不会出现任何问题,但如果使用”clang test.c”编译,在控制台窗口就会报”fatal error: ‘stdio.h’ file not fohttps://blog.youkuaiyun.com/Demorngel/article/details/73001287?locationNum=1&fps=1