1>c:\program files (x86)\windows kits\8.0\include\um\bthledef.h(421): warning C4068: 未知的雜注
1>c:\program files (x86)\windows kits\8.0\include\um\bluetoothleapis.h(658): error C2373: “PFNBLUETOOTH_GATT_EVENT_CALLBACK”: 重定義;不同的型別修飾符
1> c:\program files (x86)\windows kits\8.0\include\um\bthledef.h(349) : 參見“PFNBLUETOOTH_GATT_EVENT_CALLBACK”的宣告
#include <stdio.h>
#include <windows.h>
#include <setupapi.h>
#include <devguid.h>
#include <regstr.h>
#include <bthdef.h>
#include <Bluetoothleapis.h>
#pragma comment(lib, "SetupAPI")
#pragma comment(lib, "BluetoothApis.lib")
#define TO_SEARCH_DEVICE_UUID "{0000180D-0000-1000-8000-00805F9B34FB}" //we use UUID for an HR BLE device
uj5u.com熱心網友回復:
https://social.msdn.microsoft.com/Forums/zh-CN/5d248e7d-0534-45ac-8e84-24dead317634/win32-bluetooth-le-apis-error-c2373https://social.msdn.microsoft.com/Forums/zh-CN/5d248e7d-0534-45ac-8e84-24dead317634/win32-bluetooth-le-apis-error-c2373uj5u.com熱心網友回復:
頭檔案沖突了。調整一下h檔案順序轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/99741.html
標籤:基礎類
