#include <iostream>
#include <string>
using namespace std;
int main()
{
string str("hello world");
cout << str << endl;
str. //补全出错
return 0;
}
clang failed with error 1:
/usr/bin/clang -cc1 -fsyntax-only -code-completion-macros -x c++ -code-completi\
on-at -:9:7 -
clang的版本是3.3
用的company-mode
int main() { string str("hello world"); cout << str << endl; str. //补全出错,主要是这里说的补全出错是啥意思?出的啥错? return 0; }
1 /usr/bin/clang -cc1 -fsyntax-only -code-completion-macros -x c++ -I/usr/include -I/usr/local/include -I/usr/include/c++/4.8.2/i686-redhat-linux/bits -I/usr/include/c++/4.8.2/bits -I/usr/include/c++/4.8.2 -I/usr/include/c++/4.8.2/ext -I/usr/include/c++/4.8.2/backward -I/usr/lib/gcc/i686-redhat-linux/4.8.2/include -code-completion-at /home/lancelot/projects/linux_2/a.cc:12:9 /home/lancelot/projects/linux_2/a.cc
提示In file included from /home/lancelot/projects/linux_2/a.cc:1:
/usr/include/c++/4.8.2/iostream:38:10: fatal error: 'bits/c++config.h' file not found
#include <bits/c++config.h>
^
1 error generated.