I am new to the Mac and its dev environment (OSX 10.2.6) and like Robert am trying to use the Bluetooth C APIs and getting unresolved symbols. I have not found a lib (.a file) that contains the proper symbols and have tried using the IOBluetooth.framework. I am including the following headers and that makes the compiler happy #include <stdio.h> #include <CoreFoundation/CoreFoundation.h> #include <IOBluetooth/Bluetooth.h> #include <IOBluetooth/IOBluetoothUserLib.h> My app links with the following 'External Frameworks and Libraries' libstdc++.a IOBluetooth.framework The simple code looks like: int main (int argc, const char * argv[]) { NumVersion swVer; BluetoothHCIVersionInfo hwVer; IOReturn ioRet = IOBluetoothGetVersion(&swVer, &hwVer); return 0; } The link error: ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: IOBluetoothGetVersion(NumVersion*, BluetoothHCIVersionInfo*) So, do I need to do something special with my IOBluetooth.framework 'External Frameworks and Libraries'? Possibly a setting that I am missing? Is there a non-framework static lib that I can link to? Any C/C++ sample code (I am not familiar with the coding style of the provided samples - .m files)? Thanks! Greg ---------------------------------------------------------- You need the IOBluetooth.framework and (if you need UI components) the IOBluetoothUI.framework. They are both in /System/Library/Frameworks. I noted the you intend to write an command-line application, so be aware that many of framework API need to run on a runloop environment. ... Marco ---------------------------------------------------------- On Sep 21, 2003, at 5:30 AM, Robert M.Zigweid wrote: I have been going through the bluetooth documentation and doing some experimenting with the bluetooth API in C. However, the immediate problem that I seem to be having is that when I go to compile my simple commandline application, I get unresolved symbols. Which library is meant to be linked against? libIOBluetooth does not seem to exist on my systems anywhere that I can find. Thank you in advance, Robert _______________________________________________ bluetooth-dev mailing list | bluetooth-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev Do not post admin requests to the list. They will be ignored.