Linux platform Youcompleteme Auto-complete C + + header file

Source: Internet
Author: User



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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.