Hi,
after I compile my code I am getting the following error , any ideas?
/build/main\libmain.a(Bluetooth.o):(.rodata.REMOTE_SERVICE_UUID+0x0): multiple definition of `REMOTE_SERVICE_UUID'
/build/main\libmain.a(main.o):(.rodata.REMOTE_SERVICE_UUID+0x0): first defined here
/build/main\libmain.a(Bluetooth.o):(.rodata.REMOTE_NOTIFY_CHAR_UUID+0x0): multiple definition of `REMOTE_NOTIFY_CHAR_UUID'
/build/main\libmain.a(main.o):(.rodata.REMOTE_NOTIFY_CHAR_UUID+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
make: *** [C:\esp32\esp-idf/make/project.mk:392: /c/esp32/esp32_bt/build/hello-world.elf] Error 1
warning: "TAG" redefined, #define TAG "BT"
Re: warning: "TAG" redefined, #define TAG "BT"
Do you have two files with those definitions?
Try to remove const word.
Code: Select all
const uint8_t REMOTE_SERVICE_UUID[] = {0x00, 0x03, 0x5b, 0x03, 0x58, 0xe6, 0x07, 0xdd, 0x02, 0x1a, 0x08, 0x12, 0x3a, 0x00, 0x03, 0x00};
const uint8_t REMOTE_NOTIFY_CHAR_UUID[] = {0x00, 0x00, 0x29, 0x02, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb};
Who is online
Users browsing this forum: milan pipaliya and 127 guests