Several possibilities. One, you claim to include that file,
but inclusion has no effects due to duplicate inclusion guards
(or other conditional compilation directive); solution -- make
your compiler output the preprocessing results and confirm you
actually have the definition of 'xref' in the scope.
Ok...
# 2762 "/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
IOBluetooth.framework/Headers/IOBluetoothUserLib.h" 3
typedef struct OpaqueIOBluetoothDeviceInquiryRef *
IOBluetoothDeviceInquiryRef;
Two, how is 'x' defined? Could it be it's a macro of sorts that screws
up the 'typedef' statement?
To be more accurate:
# 2762 "/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
IOBluetooth.framework/Headers/IOBluetoothUserLib.h" 3
typedef struct OpaqueIOBluetoothDeviceInquiryRef *
IOBluetoothDeviceInquiryRef;
I can find no other refrence to OpaqueIOBlueToothDeviceInquiryRef....
Anyway, read the FAQ 5.8 and follow its recommendations.
I Shall..
I also seem to be having issues with 'C' methods and defines...
extern "C" {
# 1 "/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
IOBluetooth.framework/Headers/IOBluetoothUserLib.h" 1 3
Yet the linker is saying:
bluetoothcontrol.cpp:56: error:
`IOBluetoothDeviceInquiryCreateWithCallbackRefCon' is not available
(declared at /Users/me/Desktop/development/plugins/bluetoothcontrol
bluetoothcontrol.cpp:52)
Tool:0: __Z48IOBluetoothDeviceInquiryCreateWithCallbackRefConPv
Checking the .i file:
# 2843 "/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
IOBluetooth.framework/Headers/IOBluetoothUserLib.h" 3
extern IOBluetoothDeviceInquiryRef
IOBluetoothDeviceInquiryCreateWithCallbackRefCon( void *
inUserRefCon ) __attribute__((unavailable));