安装正常,加上gcc路径
代码: 全选
#include <string.h> // for strlen
#include <stdio.h> // for printf
int main ()
{
strlen ("foo"); // can't find symbol
printf ("bar"); // can find symbol
}
看了strlen在string.h的定义:
extern size_t strlen (__const char *__s)
__THROW __attribute_pure__ __nonnull ((1));
原来semantic parser对于gcc扩展__attribute_pure__ __nonnull ((1))解析错误,导致strlen没出来
而printf没有这个扩展,故而可以跟踪
不死心,跟了下__attribute_pure__发现宏定义是空,__nonnull在cdefs.h里定义为gcc正常扩展,但在string.h里跟__nonnull死活进不到cdefs.h里,而是显示为一个函数:
代码: 全选
__attribute_pure__ __nonnull()
另外,顺便问一下cedet在sourceforge上的mailing list有人在吗?昨天发个邮件问这个组,结果还被退回说等审核。
emacs本身用的人少,谁都问不到,文档里没有的话,新手感觉叫天天不应,叫地地不灵的样子啊