linking with bluetooth library although compiled without linking it because not actually using any methods from the headers
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
project('bluetooth-beacon-receiver', 'cpp')
|
||||
executable('bluetooth-beacon', 'src/beacon.cpp')
|
||||
executable('bluetooth-receiver', 'src/receiver.cpp')
|
||||
|
||||
# add libbluetooth
|
||||
target_link_libraries('bluetooth-beacon' 'bluetooth')
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#include <bluetooth/bluetooth.h>
|
||||
#include <bluetooth/hci.h>
|
||||
#include <stdio.h>
|
||||
#include <bluetooth/hci_lib.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
printf("Hello world, I am the beacon\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user