From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: Date: Wed, 12 Jul 2006 12:29:58 -0700 From: "Albert Huang" To: "BlueZ development" In-Reply-To: <20060712210553.dad90888.barthelemy.lemaire@gmail.com> MIME-Version: 1.0 References: <20060712210553.dad90888.barthelemy.lemaire@gmail.com> Subject: Re: [Bluez-devel] Compilation of a simple program (Debian Sid) Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1533756482==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============1533756482== Content-Type: multipart/alternative; boundary="----=_Part_7380_1414134.1152732598778" ------=_Part_7380_1414134.1152732598778 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline try without -ansi -albert On 7/12/06, 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 > #include > #include > #include > #include > > 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 > ------=_Part_7380_1414134.1152732598778 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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

------=_Part_7380_1414134.1152732598778-- --===============1533756482== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============1533756482== 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 --===============1533756482==--