简单程序,编译不通过,大侠给看看~~~
//test.c
#include <linux/semaphore.h>
#include <stdio.h>
int main()
{
struct semaphore a;
sema_init(&a,1);
printf("this use semaphore\n");
return 0;
}
使用:gcc -o test test.c,进行编译,提示找不到linux/semaphore.h,可是在:/usr/src/linux-headers-3.5.0-23-generic/include,目录下有,怎么处理呢??