* [Bluez-devel] Compilation of a simple program (Debian Sid)
@ 2006-07-12 19:05 barthelemy.lemaire
2006-07-12 19:29 ` Albert Huang
0 siblings, 1 reply; 3+ messages in thread
From: barthelemy.lemaire @ 2006-07-12 19:05 UTC (permalink / raw)
To: Bluez-devel
Hello all,
I started Bluetooth Linux development yesterday and I'm having a problem in=
compiling the very simple program shown below : =
I'm running Debian Sid and the incriminated headers are in the libbluetooth=
2-dev package (Version=A0: 3.1-1). Did I miss something? is there a bug in =
the package?
Thanks in advance
Barth
bluetooth.c:
#define EXIT_SUCCESS 0
#include <stdlib.h>
#include <netdb.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
int main ( int argc, char *argv[] )
{
return EXIT_SUCCESS;
} /* ---------- end of function main ---------- */
Makefile : =
CFLAGS =3D -Wall -ansi
LDLAGS =3D -Wall -ansi =
EXEC =3D b
LIBRARY=3D -lbluetooth
$(EXEC):$(EXEC).o
gcc -o $@ $^
$(EXEC).o:$(EXEC).c
gcc -o $@ -c $^ $(CFLAGS) $(LIBRARY)
Here is the output : =
barth@debian:~/dev$ make
gcc -o bluetooth.o -c bluetooth.c -Wall -ansi -lbluetooth
In file included from bluetooth.c:23:
/usr/include/bluetooth/bluetooth.h:113: error: expected '=3D', ',', ';', 'a=
sm' or '__attribute__' before 'int'
/usr/include/bluetooth/bluetooth.h:117: error: expected '=3D', ',', ';', 'a=
sm' or '__attribute__' before 'void'
In file included from bluetooth.c:25:
/usr/include/bluetooth/hci_lib.h:137: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'void'
/usr/include/bluetooth/hci_lib.h:142: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'void'
/usr/include/bluetooth/hci_lib.h:147: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'int'
/usr/include/bluetooth/hci_lib.h:153: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'void'
/usr/include/bluetooth/hci_lib.h:157: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'void'
/usr/include/bluetooth/hci_lib.h:161: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'void'
/usr/include/bluetooth/hci_lib.h:165: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'int'
/usr/include/bluetooth/hci_lib.h:169: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'void'
/usr/include/bluetooth/hci_lib.h:173: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'void'
/usr/include/bluetooth/hci_lib.h:177: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'void'
/usr/include/bluetooth/hci_lib.h:181: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'int'
/usr/include/bluetooth/hci_lib.h:185: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'void'
/usr/include/bluetooth/hci_lib.h:189: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'void'
/usr/include/bluetooth/hci_lib.h:193: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'void'
/usr/include/bluetooth/hci_lib.h:197: error: expected '=3D', ',', ';', 'asm=
' or '__attribute__' before 'int'
make: *** [bluetooth.o] Erreur 1
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-devel] Compilation of a simple program (Debian Sid)
2006-07-12 19:05 [Bluez-devel] Compilation of a simple program (Debian Sid) barthelemy.lemaire
@ 2006-07-12 19:29 ` Albert Huang
2006-07-12 19:53 ` bad_mr_frosty_be
0 siblings, 1 reply; 3+ messages in thread
From: Albert Huang @ 2006-07-12 19:29 UTC (permalink / raw)
To: BlueZ development
[-- Attachment #1.1: Type: text/plain, Size: 3725 bytes --]
try without -ansi
-albert
On 7/12/06, barthelemy.lemaire@gmail.com <barthelemy.lemaire@gmail.com>
wrote:
>
> Hello all,
>
> I started Bluetooth Linux development yesterday and I'm having a problem
> in compiling the very simple program shown below :
>
> I'm running Debian Sid and the incriminated headers are in the
> libbluetooth2-dev package (Version: 3.1-1). Did I miss something? is there
> a bug in the package?
>
> Thanks in advance
>
> Barth
>
>
> bluetooth.c:
>
> #define EXIT_SUCCESS 0
>
> #include <stdlib.h>
> #include <netdb.h>
> #include <bluetooth/bluetooth.h>
> #include <bluetooth/hci.h>
> #include <bluetooth/hci_lib.h>
>
> int main ( int argc, char *argv[] )
> {
> return EXIT_SUCCESS;
> } /* ---------- end of function
> main ---------- */
>
>
> Makefile :
>
> CFLAGS = -Wall -ansi
> LDLAGS = -Wall -ansi
> EXEC = b
> LIBRARY= -lbluetooth
>
> $(EXEC):$(EXEC).o
> gcc -o $@ $^
> $(EXEC).o:$(EXEC).c
> gcc -o $@ -c $^ $(CFLAGS) $(LIBRARY)
>
>
> Here is the output :
>
> barth@debian:~/dev$ make
> gcc -o bluetooth.o -c bluetooth.c -Wall -ansi -lbluetooth
> In file included from bluetooth.c:23:
> /usr/include/bluetooth/bluetooth.h:113: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'int'
> /usr/include/bluetooth/bluetooth.h:117: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'void'
> In file included from bluetooth.c:25:
> /usr/include/bluetooth/hci_lib.h:137: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'void'
> /usr/include/bluetooth/hci_lib.h:142: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'void'
> /usr/include/bluetooth/hci_lib.h:147: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'int'
> /usr/include/bluetooth/hci_lib.h:153: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'void'
> /usr/include/bluetooth/hci_lib.h:157: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'void'
> /usr/include/bluetooth/hci_lib.h:161: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'void'
> /usr/include/bluetooth/hci_lib.h:165: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'int'
> /usr/include/bluetooth/hci_lib.h:169: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'void'
> /usr/include/bluetooth/hci_lib.h:173: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'void'
> /usr/include/bluetooth/hci_lib.h:177: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'void'
> /usr/include/bluetooth/hci_lib.h:181: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'int'
> /usr/include/bluetooth/hci_lib.h:185: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'void'
> /usr/include/bluetooth/hci_lib.h:189: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'void'
> /usr/include/bluetooth/hci_lib.h:193: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'void'
> /usr/include/bluetooth/hci_lib.h:197: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before 'int'
> make: *** [bluetooth.o] Erreur 1
>
>
>
>
>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
[-- Attachment #1.2: Type: text/html, Size: 4697 bytes --]
[-- Attachment #2: Type: text/plain, Size: 375 bytes --]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-devel] Compilation of a simple program (Debian Sid)
2006-07-12 19:29 ` Albert Huang
@ 2006-07-12 19:53 ` bad_mr_frosty_be
0 siblings, 0 replies; 3+ messages in thread
From: bad_mr_frosty_be @ 2006-07-12 19:53 UTC (permalink / raw)
To: bluez-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=US-ASCII, Size: 4322 bytes --]
You were right, the problem was the -ansi option
Thank you very much
Barth
On Wed, 12 Jul 2006 12:29:58 -0700
"Albert Huang" <albert@csail.mit.edu> wrote:
> try without -ansi
>
> -albert
>
> On 7/12/06, barthelemy.lemaire@gmail.com <barthelemy.lemaire@gmail.com>
> wrote:
> >
> > Hello all,
> >
> > I started Bluetooth Linux development yesterday and I'm having a problem
> > in compiling the very simple program shown below :
> >
> > I'm running Debian Sid and the incriminated headers are in the
> > libbluetooth2-dev package (Version: 3.1-1). Did I miss something? is there
> > a bug in the package?
> >
> > Thanks in advance
> >
> > Barth
> >
> >
> > bluetooth.c:
> >
> > #define EXIT_SUCCESS 0
> >
> > #include <stdlib.h>
> > #include <netdb.h>
> > #include <bluetooth/bluetooth.h>
> > #include <bluetooth/hci.h>
> > #include <bluetooth/hci_lib.h>
> >
> > int main ( int argc, char *argv[] )
> > {
> > return EXIT_SUCCESS;
> > } /* ---------- end of function
> > main ---------- */
> >
> >
> > Makefile :
> >
> > CFLAGS = -Wall -ansi
> > LDLAGS = -Wall -ansi
> > EXEC = b
> > LIBRARY= -lbluetooth
> >
> > $(EXEC):$(EXEC).o
> > gcc -o $@ $^
> > $(EXEC).o:$(EXEC).c
> > gcc -o $@ -c $^ $(CFLAGS) $(LIBRARY)
> >
> >
> > Here is the output :
> >
> > barth@debian:~/dev$ make
> > gcc -o bluetooth.o -c bluetooth.c -Wall -ansi -lbluetooth
> > In file included from bluetooth.c:23:
> > /usr/include/bluetooth/bluetooth.h:113: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before 'int'
> > /usr/include/bluetooth/bluetooth.h:117: error: expected '=', ',', ';',
> > 'asm' or '__attribute__' before 'void'
> > In file included from bluetooth.c:25:
> > /usr/include/bluetooth/hci_lib.h:137: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'void'
> > /usr/include/bluetooth/hci_lib.h:142: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'void'
> > /usr/include/bluetooth/hci_lib.h:147: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'int'
> > /usr/include/bluetooth/hci_lib.h:153: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'void'
> > /usr/include/bluetooth/hci_lib.h:157: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'void'
> > /usr/include/bluetooth/hci_lib.h:161: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'void'
> > /usr/include/bluetooth/hci_lib.h:165: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'int'
> > /usr/include/bluetooth/hci_lib.h:169: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'void'
> > /usr/include/bluetooth/hci_lib.h:173: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'void'
> > /usr/include/bluetooth/hci_lib.h:177: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'void'
> > /usr/include/bluetooth/hci_lib.h:181: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'int'
> > /usr/include/bluetooth/hci_lib.h:185: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'void'
> > /usr/include/bluetooth/hci_lib.h:189: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'void'
> > /usr/include/bluetooth/hci_lib.h:193: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'void'
> > /usr/include/bluetooth/hci_lib.h:197: error: expected '=', ',', ';', 'asm'
> > or '__attribute__' before 'int'
> > make: *** [bluetooth.o] Erreur 1
> >
> >
> >
> >
> >
> >
> >
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Bluez-devel mailing list
> > Bluez-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bluez-devel
> >
>
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
[-- Attachment #2: Type: text/plain, Size: 375 bytes --]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-07-12 19:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-12 19:05 [Bluez-devel] Compilation of a simple program (Debian Sid) barthelemy.lemaire
2006-07-12 19:29 ` Albert Huang
2006-07-12 19:53 ` bad_mr_frosty_be
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox