2007-03-01 14:30:52

by Meenakshi Seeballack

[permalink] [raw]
Subject: [Bluez-users] Missing Bluetooth header file

Hello,
I am new to the linux world and I have installed Eclipse, with CDT.
I am running the simplescan code off this website
http://people.csail.mit.edu/albert/bluez-intro/c401.html
and I am getting these errors:
simplescan.c:6:33: error: bluetooth/bluetooth.h: No such file or directory
simplescan.c :7:27: error: bluetooth/hci.h: No such file or directory
simplescan.c:8:31: error: bluetooth/hci_lib.h: No such file or directory
simplescan.c : In function 'main':
simplescan.c:12: error: 'inquiry_info' undeclared (first use in this
function)
simplescan.c:12: error: (Each undeclared identifier is reported only once
simplescan.c:12: error: for each function it appears in.)
simplescan.c:12: error: 'ii' undeclared (first use in this function)
simplescan.c:28: error: 'IREQ_CACHE_FLUSH' undeclared (first use in this
function)
simplescan.c:29: error: expected expression before ')' token
simplescan.c:36: warning: incompatible implicit declaration of built-in
function 'memset'
simplescan.c:39: warning: incompatible implicit declaration of built-in
function 'strcpy'
simplescan.c:46:2: warning: no newline at end of file

I can see these header files:
/usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/bluetooth.h
/usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/hci.h
/usr/src/kernels/2.6.19-1.2911.fc6-i686 /include/net/bluetooth/hci_core.h
/usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/l2cap.h
/usr/src/kernels/2.6.19-1.2911.fc6-i686/include/net/bluetooth/rfcomm.h
/usr/src/kernels/2.6.19-1.2911.fc6-i686 /include/net/bluetooth/sco.h

Where is the hci_lib.h header file? Can anyone please assist me?
Meena


Attachments:
(No filename) (1.61 kB)
(No filename) (2.08 kB)
(No filename) (345.00 B)
(No filename) (164.00 B)
Download all attachments