From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: bluez-devel@lists.sourceforge.net From: Christian Krause Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Bluez-devel] Re: Re: compile problem with bluez-utils-2.23 (uint16_t, .. missing) Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon, 19 Dec 2005 23:46:50 +0100 Hi Marcel, > > I've tried to compile bluez-utils 2.23 and it failed with an error: > > > > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common -I/usr/include -I/usr/include -O2 >-fomit-frame-pointer -pipe -march=i586 -mtune=athlon -D_FORTIFY_SOURCE=2 -MT csr_usb.o -MD >-MP -MF ".deps/csr_usb.Tpo" -c -o csr_usb.o csr_usb.c; \ > > then mv -f ".deps/csr_usb.Tpo" ".deps/csr_usb.Po"; else rm -f ".deps/csr_usb.Tpo"; exit >1; fi > > In file included from csr_usb.c:34: > > csr.h:500: error: syntax error before "def" > > csr.h:501: error: syntax error before "id" > > csr.h:502: error: syntax error before "ver" > > csr.h:503: error: syntax error before "pskey" > > csr.h:504: error: syntax error before "pskey" > > csr.h:507: error: syntax error before "varid" > > csr.h:508: error: syntax error before "varid" > > csr.h:512: error: syntax error before "varid" > > csr.h:513: error: syntax error before "varid" > > csr.h:517: error: syntax error before "varid" > > csr.h:518: error: syntax error before "varid" > > > > It seems, that uint16_t, uint32_t, ... are not found. > > what compiler do you use? I never had that problem. $ gcc --version gcc-bin (GCC) 3.4.5 > > I've solved the problem by including inttypes.h in csr.h: > > I prefer using . Does this also work for you? Yes, including stdint.h works as well. Best regards, Christian ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel