My semantic-lex-c-preprocessor-symbol-file is "/usr/include/c++/i486-linux-gnu/bits/c++config.h" . In that file no define for __USE_POSIX so I add #define __USE_POSIX to the end
of this file. After deleting the .semanticdb dir, I found semantic-lex-c-preprocessor-symbol-map don't have __USE_POSIX like before.
Where am I wrong? Thank
On Tue, Jun 9, 2009 at 7:33 PM, Eric M. Ludlam <> wrote:
I looked in my signal.h on my ubuntu system, and the kill fcn is wrapped
like this:

#ifdef __USE_POSIX
extern int kill (__pid_t __pid, int __sig) __THROW;
#endif /* Use POSIX.  */

If I then do:

M-x semantic-spp-lex-describe

it does not list _USE_POSIX as an active macro.

You can use semantic-lex-c-preprocessor-symbol-map or
semantic-lex-c-preprocessor-symbol-file to add such #defines.  You would
then need to delete files from ~/.semanticdb that map to the system
includes with the problems.  That ought to fix this issue.


On Fri, 2009-06-05 at 02:28 +0800, firenet wrote:
> Hi,
>          I have one problem like this:
> #include <stdio.h>
> #include <signal.h>
> int main(int argc, char *argv[])
> {
> kil
> }
> here is my source code not completed, i want to use
> semantic-ia-complete-symbol-menu, I just get one completion, it's
> killpg.
> But i think kill should be one choice here.
> Actually, I want to use many functions like sig**** in signal.h but
> semantic's completion can't give them to me.
> Semantic version is 2.0pre7  Gnu Emacs 23 Debian Linux.
> Thanks.
> --
> No Gnus is bad news~
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to:
> _______________________________________________ Cedet-devel mailing list

No Gnus is bad news~