[cfe-users] Standard headers cannot be found when compiling with Clang

Qiuping Yi via cfe-users cfe-users at lists.llvm.org
Fri Jan 15 07:06:05 PST 2016


Hello All,

I am a beginner of clang. I installed clang 3.6 with llvm 3.6, but I found
my clang cannot work as expected.
For the next simple program test.c:

#include <stdio.h>
int main() {return 0;}

$ clang -c test.c

I got the next information:

fatal error: 'stdio.h' file not found
#include <stdio.h>
             ^
1 error generated.

what's wrong? I found other standard headers are also cannot be found.
Any suggestion is OK. Thank you in advance.

--------------------------------------------
Qiuping Yi
Institute Of Software
Chinese Academy of Sciences
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20160115/27c36236/attachment.html>


More information about the cfe-users mailing list