2006-05-19 04:02:13

by Gloria Saripah Patara

[permalink] [raw]
Subject: [Bluez-users] Want to ask....

Hello, Users of Mailing List. I'm Gloria, a student of Satya Wacana
Christian University. I am a beginner for BlueZ development and i get a
problem, now.
When i just begin my try out of examples in your thesis. I get a problem at
first example ( simplescan.c). I get some error messages and warnings.

Here they are :

/usr/include/bluetooth/bluetooth.h:18:error:syntax error before "int"
/usr/include/bluetooth/hcilib.h:122:error:syntax error before "void"
simplescan.c:7:30 bluetooth/hcilib.h:No such file o directory
simplescan.c:9:error: parse error before "argv"
simplescan.c:In function 'main'
simplescan.c:18:warning:implicit declaration of function 'hci_get_route'
simplescan.c:19:warning:implicit declaration of function 'hci_open_dev'
simplescan.c:28:warning:implicit declaration of function 'hci_inquiry'
simplescan.c:33:warning:implicit declaration of function
'hci_read_remote_name'

i attached the code with this message.

How can i resolve these problems?
There something wrong with my Linux OS or lack-of-libraries for meamo?

------------------------------------------------------------
Thanks a lot.


Attachments:
(No filename) (1.09 kB)
(No filename) (2.58 kB)
Download all attachments

2006-05-19 04:40:36

by Sowmya Gattupalli

[permalink] [raw]
Subject: Re: [Bluez-users] Want to ask....

did u compile the libraries?? did u first install bluez-libs from the site
http://www.bluez.org??
if yes then did u give this -lbluetooth option while compiling?

On 5/19/06, Gloria Saripah Patara <[email protected]> wrote:
>
> Hello, Users of Mailing List. I'm Gloria, a student of Satya Wacana
> Christian University. I am a beginner for BlueZ development and i get a
> problem, now.
> When i just begin my try out of examples in your thesis. I get a problem
> at first example ( simplescan.c). I get some error messages and warnings.
>
> Here they are :
>
> /usr/include/bluetooth/bluetoot h.h:18:error:syntax error before "int"
> /usr/include/bluetooth/hcilib .h:122:error:syntax error before "void"
> simplescan.c:7:30 bluetooth/hcilib.h:No such file o directory
> simplescan.c:9:error: parse error before "argv"
> simplescan.c:In function 'main'
> simplescan.c:18:warning:implicit declaration of function 'hci_get_route'
> simplescan.c:19:warning:implicit declaration of function 'hci_open_dev'
> simplescan.c:28:warning:implicit declaration of function 'hci_inquiry'
> simplescan.c:33:warning:implicit declaration of function
> 'hci_read_remote_name'
>
> i attached the code with this message.
>
> How can i resolve these problems?
> There something wrong with my Linux OS or lack-of-libraries for meamo?
>
> ------------------------------------------------------------
> Thanks a lot.
>


Attachments:
(No filename) (1.36 kB)
(No filename) (3.13 kB)
Download all attachments