randomphrase / company-c-headers

Auto-completion for C/C++ headers using Company
GNU General Public License v2.0
76 stars 9 forks source link

How to set the path-system under MS Windows? #24

Closed SpadedotS closed 4 years ago

SpadedotS commented 4 years ago

I've installed mingw gcc on Windows 10 and I‘ve included the include-path of gcc&g++ in the configuration file like this:

(setq company-c-headers-path-system '("C:/MinGW/include" "c:/MinGW/lib/gcc/mingw32/8.2.0/include/c++")) 

but the company-frontend didn't work, it just shows Keywords, Classes, etc. image

Is there a specific way to include the path under MS Windows? Or should I include the system path of Windows system?

Thank you for your reading. Looking forward to your reply.

randomphrase commented 4 years ago

I can see from your screenshot that you are using clangd - in this case you don't need company-c-headers at all because the completions should all be coming from there. That's why you're getting types and other symbols. Check your clangd setup.

SpadedotS commented 4 years ago

Thank you for your reply, I've tried not using company-c-backends as a company-backend, and this does work. Thanks a lot!