I tried adding the include path to flycheck c / c ++ - clang, but that didn't work.
I put foo.h in ~/local/include and added the following lines to init.el :
(add-hook 'c++-mode-hook (lambda () (setq flycheck-clang-standard-library "libc++"))) (add-hook 'c++-mode-hook (lambda () (setq flycheck-clang-language-standard "c++1y"))) (add-hook 'c++-mode-hook (lambda () (setq flycheck-clang-include-path (list "$HOME/local/include/"))))
And in a file called test.cpp I wrote
#include <foo.h>
flycheck said that
'foo.h' file not found
What am I doing wrong? I am using emacs24 , flycheck.el from package.el and clang3.4 .
source share