Return-Path: Message-ID: <1ab01fb50703010636n76b93d4dre26a557f59f8f294@mail.gmail.com> Date: Thu, 1 Mar 2007 20:06:22 +0530 From: "Vikas Sinha" To: "BlueZ development" In-Reply-To: MIME-Version: 1.0 References: Subject: Re: [Bluez-devel] Help: missing Bluetooth header file Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1077242530==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============1077242530== Content-Type: multipart/alternative; boundary="----=_Part_27506_17136913.1172759782220" ------=_Part_27506_17136913.1172759782220 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Did you have bluez stack in your machine. What version of kernel you are using. you need to provide linking -lbluetooth during compilation. On 3/1/07, Meenakshi Seeballack wrote: > > 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 > > > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Bluez-devel mailing list > Bluez-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-devel > > -- Impossible itself contain I M Possible Vikas ------=_Part_27506_17136913.1172759782220 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Did you have bluez stack in your machine. What version of kernel you are using.
you need to provide linking -lbluetooth during compilation.

On 3/1/07, Meenakshi Seeballack <meena2010@gmail.com > wrote:
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








-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel




--
Impossible
itself contain
I M Possible

Vikas ------=_Part_27506_17136913.1172759782220-- --===============1077242530== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============1077242530== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============1077242530==--