site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=s3S1i6rgoXwZUCLRc1w5FEJFXwtshH6u5mTlZ27amB+lmJqSPZyZhvplkTn4TmfQBEKGE2RlOzGe98aLIhE9dyzvBFeqmTtRaU5h2ygpl0C57pSxdc/iuZ3zfaZ/IaOq1SUNodmumDiydaYE8Zo3O825cX79HpNwMzWVUGtcx94= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=pNKM14oU3QGc2ZblSz4+uhBNzMju6Dqspkfyq1y6jPi/5d6Oi+T8Kmr21kpoqXyMbsP8eqSvSj00fgSAPDZl9jSQXmgYkkSMPNo6jmcACsl/tAmj7RYDXPc3ZQL29g939Yk2Z8ya1p4MW05/8ETJ30CeSGQnzi+BFbVgJ2gbqgg= All, We have a C++ app using carbon. We need to use Bluetooth. I've tried adding this framework to my app and to a simple test c program, and in both cases I get the following error: In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12, from /System/Library/Frameworks/IOBluetooth.framework/Headers/OBEX.h:12, from dant2.c:1: /System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:60: error: stray '@' in program [...] It seems like the framework always include Obj-C headers, which cause the C compiler to choke. Here's my sample program: $ cat dant2.c #include <IOBluetooth/OBEX.h> main() { OBEXSessionHasOpenOBEXConnection(); } Here's the command line I use: gcc -framework IOBluetooth dant2.c I got the same error in XCode when I added the IOBluetooth Framework and included this header. _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Daniel Birns