-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Some bugs or questions about C-C++ layer #4493
Comments
(add-to-list 'company-c-headers-path-system "/usr/include/c++/4.8/" ) Because it's is system-specific, we cannot preconfigured it.
|
Sorry,
|
Are your packages updated? How old is your |
elpa/bind-map-20151217.829/.. I think it should be the latest. I install the spacemacs yesterday. |
Yeah ok, it's not that then. Can I try your dotfile? |
@TheBB dotfile refers to .spacemacs? It only have a little changes in this file. |
Okay, I tried with your dotfile (except I had to remove the chinese layer), and |
Yeah, It seems chinese layer leads to this issue. |
Really? It works without the chinese layer? |
Sorry, I try to operate it more times. The problem still exist after I comment ps: Can you give more methods to debug it? Or, Do you need some other information? |
@jcppython I have the same issues with you. Have you fixed this problems? |
@TheBB Hi, I have the same issues that can't find the C++ headers. |
@Voleking Do you have clang support enabled? If you do, create a |
This change makes the c-c++ layer configure company-c-headers to search for and list completion alternatives according to the priority list found in 'man gcc'. If supported, the default system include paths are also fetched from gcc's configuration instead of being hard coded to "/usr/include" and "/usr/local/include". This also remedies the problem where the C++ standard library headers does not show up as completion alternatives without manual addition of include paths (see syl20bnr#4493, syl20bnr#8655).
This change makes the c-c++ layer configure company-c-headers to search for and list completion alternatives according to the priority list found in 'man gcc'. If supported, the default system include paths are also fetched from gcc's configuration instead of being hard coded to "/usr/include" and "/usr/local/include". This also remedies the problem where the C++ standard library headers does not show up as completion alternatives without manual addition of include paths (see #4493, #8655).
May be fixed in develop after #9381 is merged. |
This change makes the c-c++ layer configure company-c-headers to search for and list completion alternatives according to the priority list found in 'man gcc'. If supported, the default system include paths are also fetched from gcc's configuration instead of being hard coded to "/usr/include" and "/usr/local/include". This also remedies the problem where the C++ standard library headers does not show up as completion alternatives without manual addition of include paths (see syl20bnr#4493, syl20bnr#8655).
This change makes the c-c++ layer configure company-c-headers to search for and list completion alternatives according to the priority list found in 'man gcc'. If supported, the default system include paths are also fetched from gcc's configuration instead of being hard coded to "/usr/include" and "/usr/local/include". This also remedies the problem where the C++ standard library headers does not show up as completion alternatives without manual addition of include paths (see syl20bnr#4493, syl20bnr#8655).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Here is my configuration

emacs-version
GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
The "SPC m" is undefined when I open a C/C++ header file.
In addition, the illustration of “Key Bindings” part has some wrongs in C-C++.
https://github.com/fenxian/spacemacs/blob/master/layers/+lang/c-c++/README.org
It can't find the C++ headers.

I need to configure it?
An unfriendly tip as shown in following:

And, the code is right. In other words, this tip shouldn't exist in here.
In addition, how to open a header file? command or key binding?
Can you give me more information about how to scan a big C/C++ project with spacemacs?
For example, how to configure it for my project?
How to jump to the definition of references?
Thank you~
The text was updated successfully, but these errors were encountered: