1> C: \ program files \ Windows (x86) kits \ \ include \ 8.0 um \ bluetoothleapis h (658) : error C2373: "PFNBLUETOOTH_GATT_EVENT_CALLBACK" : redefine; Different types of modifiers
1> C: \ program files \ Windows (x86) kits \ \ include \ 8.0 um \ bthledef h (349) : see "PFNBLUETOOTH_GATT_EVENT_CALLBACK" statement
# include & lt; stdio.h>
#include
#include
#include
#include
#include
#include
# pragma comment (lib, "SetupAPI")
# pragma comment (lib, "BluetoothApis. Lib")
# define TO_SEARCH_DEVICE_UUID f9b34fb} {0000180 - d - 0000-1000-8000-00805 ", "//we use UUID for an HR BLE device
CodePudding user response:
https://social.msdn.microsoft.com/Forums/zh-CN/5d248e7d-0534-45ac-8e84-24dead317634/win32-bluetooth-le-apis-error-c2373 https://social.msdn.microsoft.com/Forums/zh-CN/5d248e7d-0534-45ac-8e84-24dead317634/win32-bluetooth-le-apis-error-c2373CodePudding user response:
The header file conflict, adjust the h file sequence