Find the System header file path First
[[email protected] ~]$ sudo find/-iname ' iostream '/usr/include/c++/4.4.4/iostream/usr/local/include/c++/6.3.0/ Iostream[[email protected] ~]$ sudo find/-iname ' fstream '/usr/include/c++/4.4.4/fstream/usr/local/include/c++/6.3.0 /fstream[[email protected] ~]$[[email protected] ~]$ sudo find/usr/-iname ' *python.h '/usr/share/doc/ Python-matplotlib-0.99.1.2/cxx/wrappython.h/usr/include/python2.6/python.h
Before configuration
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/8E/8A/wKiom1jD_nfAusjsAAAwqgYvNBA374.png "title=" Ycm_c ++_000.png "alt=" Wkiom1jd_nfausjsaaawqgyvnba374.png "/>
Add the system header file path in flags
Add a third-party/custom header file path in flags
Vim ~/.vim/.ycm_extra_conf.py Add content flags = ['-isystem ', '/usr/local/include/c++/6.3.0/', '-isystem ', '/usr/include/ Python2.6/',]
After configuration
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/8E/8A/wKiom1jD_oTDbS-EAAAv_gB3BCQ817.png "title=" Ycm_c ++_001.png "alt=" Wkiom1jd_otdbs-eaaav_gb3bcq817.png "/>
This article is from the "Soul Bucket" blog, please be sure to keep this source http://990487026.blog.51cto.com/10133282/1905467
Linux platform Youcompleteme Auto-complete C + + header file