我通过Vundle在我的Mac和Mavericks上安装了VIM的YouCompleteMe。在Vundle施展魔法后我跑了
./install.sh --clang-completer它工作时没有任何错误。Python补全也工作得很好。但是C Lang家庭的支持似乎并不起作用。也在运行
./run_tests.sh给了我
Your C++ compiler supports C++11, compiling in that mode.
-- Found PythonLibs: /usr/local/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/Python (found suitable version "2.7.7", minimum required is "2.6")
NOT using libclang, no semantic completion for C/C++/ObjC will be available有人知道如何解决这个问题吗?
发布于 2014-09-16 22:16:07
不要运行第二个命令
./run_tests.sh它将在不使用--clang- ycm_*.so (这是默认选项)的情况下重新编译完成器。
要修复它,请重新安装:
./install.sh --clang-completer发布于 2017-02-21 20:00:35
在.vimrc中添加您的clang_library_path,例如
let g:clang_library_path='/usr/lib/llvm-3.8/lib/'https://stackoverflow.com/questions/24263139
复制相似问题