mcci-catena / arduino-lorawan

User-friendly library for using arduino-lmic with The Things Network and other LoRaWAN® networks
MIT License
274 stars 54 forks source link

'hal_init' multiple definition on arduino-espressif32 v2.0.0 framework #186

Closed cyberman54 closed 2 years ago

cyberman54 commented 2 years ago

Lmic compiles smoothless on arduino-espressif32 v1.0.6 framework. But with the current v2.0.0 i get a linker error:

/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: /.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/lib\libpp.a(hal_mac.o): in function hal_init': (.text.hal_init+0xc8): multiple definition ofhal_init';

It seems there two concurrent definitions for hal_init, one in lmic (src/hal/hal.cpp:416) and one in libpp.

Not sure what i can do to avoid or fix this.

cyberman54 commented 2 years ago

wrong place, must go to lmic repo. closed here.