I have read a lot of tutorials on installing clang_complete on Baidu. I installed it using bundle. After installation, I opened the .c file and the following prompt appeared
Loading libclang failed, completion won't be available. Consider setting g:clang
_library_path.
clang has been installed and the system is ubuntu14.10.
The master who is passing by can help me solve it. I have been struggling for a long time and haven’t done it yet.
PHP中文网2017-05-16 16:41:13
Install libclang
bash
apt-get install libclang-3.5-dev
At this time libclang.so
should be located
/usr/lib/llvm-3.5/lib/libclang.so
Then add clang_complete configuration to vim
vim
let g:clang_use_library = 1 let g:clang_library_path = '/usr/lib/llvm-3.5/lib/'
伊谢尔伦2017-05-16 16:41:13
Just add the method downstairs and you’ll be good to go.
The following method provided by an enthusiastic netizen of v2ex will also work, and it is more convenient. sudo ln -s /usr/lib/llvm-3.5/lib/libclang.so.1 /usr/lib/libclang.so