标签:linux平台 youcompleteme自动补全c++头文件
先查找系统的头文件路径
[chunli@CentOS ~]$ sudo find / -iname ‘iostream‘ /usr/include/c++/4.4.4/iostream /usr/local/include/c++/6.3.0/iostream [chunli@CentOS ~]$ sudo find / -iname ‘fstream‘ /usr/include/c++/4.4.4/fstream /usr/local/include/c++/6.3.0/fstream [chunli@CentOS ~]$ [chunli@CentOS ~]$ sudo find /usr/ -iname ‘*python.h‘ /usr/share/doc/python-matplotlib-0.99.1.2/CXX/WrapPython.h /usr/include/python2.6/Python.h
配置前
在flags中添加系统头文件路径
在flags中添加第三方/自定义头文件路径
vim ~/.vim/.ycm_extra_conf.py 添加内容 flags = [ ‘-isystem‘, ‘/usr/local/include/c++/6.3.0/‘, ‘-isystem‘, ‘/usr/include/python2.6/‘, ]
配置后
本文出自 “魂斗罗” 博客,请务必保留此出处http://990487026.blog.51cto.com/10133282/1905467
Linux平台 YouCompleteMe自动补全C++头文件
标签:linux平台 youcompleteme自动补全c++头文件
原文地址:http://990487026.blog.51cto.com/10133282/1905467