+ -
当前位置:首页 → 问答吧 → 编译蓝牙程序提示头文件找不到怎么办?

编译蓝牙程序提示头文件找不到怎么办?

时间:2008-10-05

来源:互联网

请教各位大虾们:
        我写了个蓝牙的小程序,引用到了蓝牙的几个头文件:

  #include <stdlib.h>
  #include <unistd.h>
  #include <sys/socket.h>
  #include <bluetooth/bluetooth.h>
  #include <bluetooth/rfcomm.h>
。。。。
  编译时提示蓝牙的这两个头文件找不到怎么办?我用的系统是ubantu,搜索了下bluetooth这个 文件的位置是在: /usr/src/linux-headers-2.6.24-19/include/net/bluetooth,谢谢指点!      

作者: eques   发布时间: 2008-10-05

#include <net/bluetooth/bluetooth.h>
#include <net/tooth/rfcomm.h>
试试看      

作者: lanche   发布时间: 2008-10-05