clang reports file stdio.h not found on windows

I have llvm 15.0.4 installed on windows 10 and am going to cross compile a simple helloword program with clang which will run on a 32 bit system on a raspberry pi 4B. But when compiling, an error is reported, saying that the stdio.h file cannot be found.

PS C:\test> clang --target=arm-linux-gnueabi test.c -o test
test.c:1:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
1 error generated.

Try clang-cl instead

This is cross-compiling to arm linux, I don’t think clang-cl is the solution.
I think some sort of sdk or toolchain installation for the arm-linux target would be needed.

Ah I read to quickly. Yeah a sysroot would be needed

I try clang-cl, but the problem not resolved

I also installed GCC’s cross-compilation toolchain “arm-none-linux-gnueabihf-gcc” and added the toolchain path to the system environment variable “PATH”