My current setup is as follows
Elementary OS Freya
- Emacs version 24.5.1
- company-mode 0.8.12
I've checked that both libclang-3.5-dev and clang-3.5-dev are installed and I have also checked that clang was in /usr/bin. There is no problem on init but when I open a cpp file the following error in thrown
Company back-end 'company-clang' could not be initialized: Company found no clang executable
I'm trying to setup a C/C++ development environment in emacs, I was following this guide in order to achieve this.
i.e adding the following to my .emacs file
(require 'company) (add-hook 'after-init-hook 'global-company-mode) (setq company-backends (delete 'company-semantic company-backends)) (define-key c-mode-map [(tab)] 'company-complete) (define-key c++-mode-map [(tab)] 'company-complete)
So how do I get clang recognized by company-clang?