* semantic database
@ 2009-12-19 3:01 kiani45
2009-12-19 4:09 ` Hoyt Koepke
0 siblings, 1 reply; 3+ messages in thread
From: kiani45 @ 2009-12-19 3:01 UTC (permalink / raw)
To: Help-gnu-emacs
Hi, all
I have a problem about semantic
I wanna use name completion for all information including STL
for example :
vector<int> v1 ;
v1.
then semantic will show me some accessable member and member functions in a
pop-up window
It works for my user defined type but I can't get information of STL
Can any one tell me what should I do??
I've checked this page
http://xtalk.msk.su/~ott/en/writings/emacs-devenv/EmacsCedet.html
try several ways, but it still doesn't work
Can any one help me ??
Thanks
here's my portion of .emacs file:
(require 'semantic-ia)
(require 'semantic-gcc)
(semantic-add-system-include "/usr/include/C++/4.2" 'c++-mode)
(semantic-add-system-include "~/MyProjects/C++/C++-3/HW2/header" 'c++-mode)
(require 'semanticdb)
(global-semanticdb-minor-mode 1)
(require 'semanticdb-global)
--
View this message in context: http://old.nabble.com/semantic-database-tp26852355p26852355.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: semantic database
2009-12-19 3:01 semantic database kiani45
@ 2009-12-19 4:09 ` Hoyt Koepke
[not found] ` <45a6a1f00912182041x3d1e656cnef28e1e2a3025055@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Hoyt Koepke @ 2009-12-19 4:09 UTC (permalink / raw)
To: kiani45; +Cc: Help-gnu-emacs
> vector<int> v1 ;
> v1.
>
> then semantic will show me some accessable member and member functions in a
> pop-up window
> It works for my user defined type but I can't get information of STL
> Can any one tell me what should I do??
>
> I've checked this page
> http://xtalk.msk.su/~ott/en/writings/emacs-devenv/EmacsCedet.html
> try several ways, but it still doesn't work
> Can any one help me ??
If you type "M-x semantic-analyze-debug-assist" where it should show
the member functions, it will list the include files that it's parsed
for type definitions and the directories where it's searched for them.
My guess is that <vector> is not loaded.
If it isn't, make sure the directories where it looks are all valid,
and it's in one of those.
In particular, I'm suspicious about the capital "C" in your
"/usr/include/C++/4.2"; in *nix the case matters, and I think it's
/usr/include/c++/<version> on most linux machines (it is on mine).
Hope that helps,
-- Hoyt
++++++++++++++++++++++++++++++++++++++++++++++++
+ Hoyt Koepke
+ University of Washington Department of Statistics
+ http://www.stat.washington.edu/~hoytak/
+ hoytak@gmail.com
++++++++++++++++++++++++++++++++++++++++++
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: semantic database
[not found] ` <45a6a1f00912182041x3d1e656cnef28e1e2a3025055@mail.gmail.com>
@ 2009-12-19 4:54 ` Hoyt Koepke
0 siblings, 0 replies; 3+ messages in thread
From: Hoyt Koepke @ 2009-12-19 4:54 UTC (permalink / raw)
To: kai Wang, Help-gnu-emacs
> It works now but I have another two questions
>
> When I check my system include path, I found some invalid path:
>
> Include Path Summary:
>
> The system include path is:
> /usr/include/c++/4.2/
> ~/MyProjects/C++/C++-3/HW2/header/
> /usr/include/
> /usr/usr/include/c++/4.2/
> /usr/usr/include/c++/4.2/x86_64-linux-gnu/
>
> Two questions here:
>
> 1. For red marked lines:
> it seems that redundant /usr/usr is the reason that results in my
> previous problem
> may I ask where can I modified my system include path
>
> 2. For blue maked line:
> I have always explicitly put the user-defined directory into my path by
> modifying my .emacs file
> (semantic-add-system-include "~/MyProjects/C++/C++-3/HW2/header"
> 'c++-mode)
> I wonder how can I let semantic autoload the sub directory header
> files?
I have the same problem; I believe it's a bug. I don't know semantec
at all, so someone else will have to address that. It hasn't caused
me any problems yet.
For any devs listening: I'm using cedet-pre6 on ubuntu karmic, with gcc 4.4.
--Hoyt
++++++++++++++++++++++++++++++++++++++++++++++++
+ Hoyt Koepke
+ University of Washington Department of Statistics
+ http://www.stat.washington.edu/~hoytak/
+ hoytak@gmail.com
++++++++++++++++++++++++++++++++++++++++++
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-19 4:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-19 3:01 semantic database kiani45
2009-12-19 4:09 ` Hoyt Koepke
[not found] ` <45a6a1f00912182041x3d1e656cnef28e1e2a3025055@mail.gmail.com>
2009-12-19 4:54 ` Hoyt Koepke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).