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.
Install libclang
At this time
libclang.so
should be located/usr/lib/llvm-3.5/lib/libclang.so
Then add clang_complete configuration to vim
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