I cannot solve this problem by all the methods I know. I don't know why.
Now I just reinstall llvm and clang, and it wokrs.
Thanks for your help!
Qiuping Yi
Institute Of Software
Chinese Academy of Sciences
On Sat, Jan 16, 2016 at 1:39 PM, Matthew Bru
On 2016-01-15 8:36 PM, Qiuping Yi via cfe-users wrote:
I use ubuntu,
I don't think Clang ever could find proper includes here. See the bugs like:
https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1242300
It works fine, it just doesn't know where to find the correct stdlib
headers
I use ubuntu,
$ uname -a
Linux novice 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31
UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
and this is the output of 'clang -v -c'
$ clang -v -c test.c
clang version 3.6.0 (tags/RELEASE_360/final)
Target: x86_64-unknown-linux-gnu
Thread model: pos
On Fri, Jan 15, 2016 at 7:06 AM, Qiuping Yi via cfe-users
wrote:
> 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
> int main() {return 0;}
>
> $ clang -c test.c
>
> I