help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cedet cannot complete C++ standard class


From: augustinus
Subject: Cedet cannot complete C++ standard class
Date: Sat, 06 Jul 2013 00:01:26 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

Hi guys:
I get a problem when i use the built-in cedet to write C++ code. It is
that cedet can not complete the standard C++ class such as string and
vector ... But cedet can complete the classes defined by me.And there is
no data in the semanticdb directory about C++ standard headers, I think
it cases the problem but I don't know what to do to make it work!
Here is my cedet setting:

(require 'cedet)
(setq semantic-default-submodes '(global-semantic-idle-scheduler-mode
global-semanticdb-minor-mode
global-semantic-idle-summary-mode
global-semantic-mru-bookmark-mode))
(semantic-mode 1)

(global-semantic-decoration-mode)

(require 'semantic/bovine/gcc)
(require 'semantic/bovine/c)

(defconst cedet-user-include-dirs
(list ".." "../include" "../inc" "../common" "../public" "."
"../.." "../../include" "../../inc" "../../common" "../../public"))

(setq cedet-sys-include-dirs (list
"/usr/include"
"/usr/include/bits"
"/usr/include/gnu"
"/usr/local/include"))

(let ((include-dirs cedet-user-include-dirs))
(setq include-dirs (append include-dirs cedet-sys-include-dirs))
(mapc (lambda (dir)
(semantic-add-system-include dir 'c++-mode)
(semantic-add-system-include dir 'c-mode))
include-dirs))

(setq semantic-c-dependency-system-include-path "/usr/include/")

(setq semanticdb-default-save-directory
(expand-file-name "~/.emacs.d/semanticdb"))

(provide 'cedet-setting)

Is there anyone have ideas about this problem?
Thank you!!!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]