Arduino LMIC compile error please help

I use TTGO Lora32 oled. adruino IDE 2 and 1.8.19 and platformio.

compiling your example program i get the following message.

the installed library is 4.1.0

c:/users/user/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/…/lib/gcc/xtensa-esp32-elf/8.4.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: C:\Users\User\AppData\Local\arduino15\packages\esp32\hardware\esp32\2.0.7/tools/sdk/esp32/lib\libpp.a(hal_mac.o): in function hal_init': (.text.hal_init+0x40): multiple definition of hal_init’; C:\Users\User\AppData\Local\Temp\arduino\sketches\89FD21DFE66BEDCDEE0263774CDEC942\libraries\MCCI_LoRaWAN_LMIC_library\hal\hal.cpp.o:c:\Users\User\Documents\Arduino\libraries\MCCI_LoRaWAN_LMIC_library\src\hal/hal.cpp:416: first defined here
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

can somebody please help