Emacs CEDET and system include paths

I want to add the path to the headers of the openMPI library. So, after I discovered that all openMPI headers are in / usr / lib / openmpi / include / *, I added these two lines to my .emacs:

(semantic-add-system-include "/usr/lib/openmpi/include" 'c-mode)
(semantic-add-system-include "/usr/lib/openmpi/include" 'c++-mode)

I think this is normal, but it does not work!
This is the result of the semantic-c-describe-envirnoment command:

This file system includes the path:
    / USR / enable
    / USR / local / enable /
    / usr / lib / gcc / i 486-linux-gnu / 4.4.3 / include /
    / usr / lib / gcc / i 486-linux-gnu /4.4.3/include-fixed/
    / usr / include /

I can not understand what happened or what I am missing

thank

+3
source share
2

, . , , , :

(defun my-semantic-hook ()
  (semantic-add-system-include "/usr/lib/openmpi/include" 'c-mode)
  (semantic-add-system-include "/usr/lib/openmpi/include" 'c++-mode))
(add-hook 'semantic-init-hooks 'my-semantic-hook)
+3
+2

Source: https://habr.com/ru/post/1745241/


All Articles