Re: Linking problems with CW 9 and Bluetooth API
Re: Linking problems with CW 9 and Bluetooth API
- Subject: Re: Linking problems with CW 9 and Bluetooth API
- From: Marco Pontil <email@hidden>
- Date: Wed, 15 Nov 2006 10:24:30 -0800
Sounds like the problem is the use of C functions in a C++ environment you may need to add << extern "C" {} >> around the inclusion of the bluetooth headers, something like this:
extern "C" {
#include <IOBluetooth/IOBluetoothUserLib.h>
}
the or maybe this is sufficient:
#define __cplusplus #include <IOBluetooth/IOBluetoothUserLib.h>
the header already has the "extern C" but it relies on the definition of __cplusplus to enable the extern C and CW may not define "__cplusplus".
it seems worth a shot.. if it does not work please copy and paste the error on an e-mail so we can see exactly how the undefined function looks like.
... Marco
On Nov 14, 2006, at 8:46 AM, Pini Ben Zvi wrote: Just about undefined functions when linking, i.e.: Link Error: Undefined: <BT API function name> (code) Referenced from <source code file>. It looks like the linker just can't find the function in any of the linked libraries/frameworks, although as I said, I added the proper BT frameworks to my project. Pini |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden