Skip to contentSkip to conversation

BlueZ libraries..

Bluez-devel Flávio 3 participants 4 messages Feb 2, 2005 – Feb 3, 2005 Bluetooth drivers

lore
Share & tools
lore

Flávio

author
#0 lore raw

Hi there!
Hi have just installed the bluez libraries to start using them. I have made this simple program to test the includes:

#include <bluetooth/bluetooth.h>
#include <bluetooth/l2cap.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>

int main(void)

{
	printf("teste");
	return 0;

}

But the result is:
/usr/include/bluetooth/l2cap.h:46: error: syntax error before "sa_family_t" /usr/include/bluetooth/l2cap.h:49: error: syntax error before '}' token /usr/include/bluetooth/hci.h:1114: error: syntax error before "sa_family_t" /usr/include/bluetooth/hci.h:1116: error: syntax error before '}' token

Can anyone please tell me what i am doing wrong?
Thank you.

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

Try include netdb.h on top=20

Quoted 13 lines · On Wed, Feb 02, 2005 at 07:02:52PM +0000, Fl=E1vio wrote:

Hi there!
Hi have just installed the bluez libraries to start using them. I have made this simple program to test the includes:
=20
#include <bluetooth/bluetooth.h>
#include <bluetooth/l2cap.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
=20
int main(void)

{
	printf("teste");
	return 0;
Quoted 6 lines

=20
}
=20
=20
But the result is:
/usr/include/bluetooth/l2cap.h:46: error: syntax error before "sa_famil=

y_t"

Quoted 2 lines

/usr/include/bluetooth/l2cap.h:49: error: syntax error before '}' token /usr/include/bluetooth/hci.h:1114: error: syntax error before "sa_famil=

y_t"

Quoted 7 lines

/usr/include/bluetooth/hci.h:1116: error: syntax error before '}' token =20
Can anyone please tell me what i am doing wrong?
Thank you.
=20
=20
-------------------------------------------------------

Quoted 8 lines

This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#2 lore raw

Hi Nelson,

Quoted 1 line

Try include netdb.h on top

it is sys/socket.h that is missing.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

author
#3 lore raw

Thanks for all the help :)! it is running!

On Wed, 02 Feb 2005 21:05:59 +0100, Marcel Holtmann <[email protected]> w= rote:

Quoted 13 lines

Hi Nelson,
=20

Quoted 1 line

Try include netdb.h on top

=20
it is sys/socket.h that is missing.
=20
Regards
=20
Marcel
=20
=20
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting

Quoted 8 lines

Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
=20

--=20
Cumprimentos de Fl=E1vio!

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel