Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no completion with C/C++ standard header files #1478

Closed
shixiazuike opened this issue Apr 25, 2015 · 2 comments
Closed

There is no completion with C/C++ standard header files #1478

shixiazuike opened this issue Apr 25, 2015 · 2 comments

Comments

@shixiazuike
Copy link

Sorry for poor English.
My system is Ubuntu-12.04-i386, and YCM is compiled with libclang.so (There is no pre-build clang-3.6.0 for my system so I do it myself). I found completion cannot work with C/C++ standard header files.
With suggestion in #303, call echo | clang -v -E -x c++ - , got

include "..." search starts here:

include <...> search starts here:

/usr/lib/gcc/i686-linux-gnu/4.8/../../../../include/c++/4.8
/usr/lib/gcc/i686-linux-gnu/4.8/../../../../include/i386-linux-gnu/c++/4.8
/usr/lib/gcc/i686-linux-gnu/4.8/../../../../include/c++/4.8/backward
/usr/local/include
/usr/local/bin/../lib/clang/3.6.0/include
/usr/include/i386-linux-gnu

after adding above dirs to global '.ycm_extra_conf.py' prepending '-isystem' but it still cannot work! Only "standart.h" can be found when I typing 'std'.

Using

'-I'
'/usr/include/c++/4.8/tr1'

is same as '-isystem'

@darlingm
Copy link

Are you compiling with -stdlib=libc++? If so, call echo | clang -stdlib=libc++ -v -E -x c++ - instead. The top 3 directories listed here are for GCC's stdlibc++, which is likely what you need if you aren't compiling with -stdlib=libc++. Not sure if that is going to fix your issue, but wanted to mention it.

@Valloric
Copy link
Member

Please see CONTRIBUTING.md.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants