How to get emacs auto-complete to complete the functions from the included header files?

user638135 picture user638135 · Apr 13, 2011 · Viewed 7.4k times · Source

I have configured emacs for automatic code completion using emacs auto complete. I mainly use C/C++. I cannot get auto-complete to complete the function name form the included header files. For example, say I included string.h and when I type say strl, it does not give strlen as a potential candidate. Is there possibly a way to set this up?

I tried CEDET but the smart completion in CEDET is too slow or I may have it set up incorrectly.

Thanks, skr

Answer

Bozhidar Batsov picture Bozhidar Batsov · Apr 14, 2011

According to the autocomplete-mode manual it has build support for completion from a semantic(a CEDET component) source. I urge to take a look at the manual, alternatively one can create a custom completion source.