ubuntu – My YouCompleteMe Vim插件不支持STL

前端之家收集整理的这篇文章主要介绍了ubuntu – My YouCompleteMe Vim插件不支持STL前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
根据 Github的介绍,我刚刚编译并安装了Vim,Vundle和 YouCompleteMe插件.
但是,在我的Vim中,YouCompleteMe插件不能正常工作.它可以自动完成变量的名称,但它不会自动完成STL对象(向量,映射)的操作.甚至无法自动完成“this->”在课堂上它总是告诉我“(^ U ^ N ^ P)找不到模式”.
你有没有看过这个?
我使用Ubuntu 12.04.
我该怎么办?
现在,github repo的自述文件现在解决了这个问题.

This is caused by an issue with libclang. Compiling from clang the binary uses the correct default header search paths but compiling from libclang.so does not. The issue seems to impact some OS’s more than others. It appears that OS X Mavericks in particular has problems with this.

The current workaround is to call echo | clang -v -E -x c++ – and look at the paths under the #include <…> search starts here: heading. You should take those paths,prepend -isystem to each individual path and append them all to the list of flags you return from your FlagsForFile function in your .ycm_extra_conf.py file.

您可能还想看看相应的issue

猜你在找的Ubuntu相关文章