You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mostly because ld can't find symbols. Adding a blueutil.h with following content fixed it for me:
//
// blueutil.h
// blueutil
//
// Created by Brian Reiter on 4/27/15.
//
//
#ifndef blueutil_blueutil_h
#define blueutil_blueutil_h
int BTPowerState();
int BTSetPowerState(int powerState);
void BTStatus();
#endif
Now it compiles with clang -framework Foundation -framework IOBluetooth -o blueutil blueutil.c (or clang++ -framework Foundation -framework IOBluetooth -o blueutil blueutil.m for the ObjC version).
It may also be noted that if Bluetooth can't be activated via the control panel, neither can blueutil. But that's a different issue.
The text was updated successfully, but these errors were encountered:
Mostly because ld can't find symbols. Adding a blueutil.h with following content fixed it for me:
Now it compiles with
clang -framework Foundation -framework IOBluetooth -o blueutil blueutil.c
(orclang++ -framework Foundation -framework IOBluetooth -o blueutil blueutil.m
for the ObjC version).It may also be noted that if Bluetooth can't be activated via the control panel, neither can blueutil. But that's a different issue.
The text was updated successfully, but these errors were encountered: