Skip to content

Failing build: multiple definition of `hal_init' #41

@gkaretka

Description

@gkaretka

Hello, I'm building this project with these libraries for heltec_wireless_stick board.

Dependency Graph

  • |-- <U8g2> 2.33.2
  • | |-- <SPI> 2.0.0
  • | |-- <Wire> 2.0.0
  • |-- <EasyLed> 1.1.0
  • |-- <MCCI LoRaWAN LMIC library> 4.0.0
  • | |-- <SPI> 2.0.0
  • |-- <Wire> 2.0.0
  • |-- <SPI> 2.0.0
    `
    Building in release mode

and I am getting this error message
Linking .pio\build\heltec_wireless_stick\firmware.elf c:/users/xxx/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\xxx\.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32\lib\libpp.a(hal_mac.o): in functionhal_init':
(.text.hal_init+0xc8): multiple definition of hal_init'; .pio\build\heltec_wireless_stick\libc40\libMCCI LoRaWAN LMIC library.a(hal.cpp.o):C:\Users\xxx\Documents\GitHub\LMIC-node/.pio/libdeps/heltec_wireless_stick/MCCI LoRaWAN LMIC library/src/hal/hal.cpp:416: first defined here collect2.exe: error: ld returned 1 exit status *** [.pio\build\heltec_wireless_stick\firmware.elf] Error 1

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions