clang ++-5.0无法找到头文件

时间:2018-08-08 21:23:32

标签: clang++

我最近由Ubuntu升级,而clang ++-5.0无法找到iostream头文件。

> clang++-5.0 a.cpp
a.cpp:2:9: fatal error: 'iostream' file not found
#include<iostream>
        ^~~~~~~~~~
1 error generated.

我可以看到clang确实可以访问libstdc ++

> ldd /usr/bin/clang++-5.0
    linux-vdso.so.1 =>  (0x00007fffecfce000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007feee4770000)
    libLLVM-5.0.so.1 => /usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1 (0x00007feee11b0000)
    libjsoncpp.so.1 => /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1 (0x00007feee0f70000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007feee0bd0000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007feee08c0000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007feee06a0000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007feee02c0000)
    /lib64/ld-linux-x86-64.so.2 (0x00007feee4a00000)
    libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007feee00b0000)
    libedit.so.2 => /usr/lib/x86_64-linux-gnu/libedit.so.2 (0x00007feedfe70000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007feedfc50000)
    libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007feedfa20000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007feedf800000)
    libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007feedf5d0000)

我不太确定缺少什么。如果有人可以帮助我,那将是很棒的。谢谢

0 个答案:

没有答案