Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim you complete me error on c++11 syntax

I installed You Complete Me with Vundle and then ran

cd ~/.vim/bundle/YouCompleteMe
./install.sh --clang-completer

And added

let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleMe/cpp/ycm/.ycm_extra_conf.py'

to my vimrc file.

Now when I write C++11 code, ycm gives me syntax errors! What am I doing wrong?

like image 311
amin Avatar asked Dec 11 '22 07:12

amin


1 Answers

commenting -Wc++98-compat flag in ~/.vim/bundle/YouCompleMe/cpp/ycm/.ycm_extra_conf.py did the job for me .

like image 77
amin Avatar answered Dec 25 '22 19:12

amin