clang ++ - 致命错误:找不到'bits / c ++ config.h'文件

时间:2011-05-11 21:11:56

标签: clang

我正在使用clang 2.9,从源代码编译,当我尝试编译这样一个简单的代码时:

#include <iostream>

int main (){
  std::cout << "Hello\n";
}

我收到错误:

/usr/include/c++/4.5/string:39:10: fatal error: 'bits/c++config.h' file not found

当我加入/usr/include/c++/4.5/i686-linux-gnu时,我会

/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lgcc
clang: error: linker command failed with exit code 1 (use -v to see invocation)

关于如何解决这个问题的任何想法?

0 个答案:

没有答案