#include <stdio.h>
#include <libblinkstick.h>
int main() {
blinkstick_device* device = blinkstick_find();
if (device == NULL) {
printf("Failed to open BlinkStick device\n");
return 1;
}
blinkstick_set_color(device, 255, 0, 0, 0, 0); // Set color to red
blinkstick_destroy(device);
return 0;
}
I am trying to run this sample code but when I tried to compile it using gcc I go the following errors:
Undefined symbols for architecture arm64:
"_blinkstick_destroy", referenced from:
_main in blink-f7ff16.o
"_blinkstick_find", referenced from:
_main in blink-f7ff16.o
"_blinkstick_set_color", referenced from:
_main in blink-f7ff16.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am thinking that this code is developed for an AMD64 based architecture instead of an ARM64. How can I update the library for an ARM based architecture?
I am trying to run this sample code but when I tried to compile it using gcc I go the following errors:
I am thinking that this code is developed for an AMD64 based architecture instead of an ARM64. How can I update the library for an ARM based architecture?