about multipile definition error from linker

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


I just got an error from my linker when I compiles my code:

Linking to `uc3b0256-sd_mmc_example.elf'.
../../../sd_mmc.o:(.rodata.CC2420_FIFO_eic_opt+0x0): multiple definition of `CC2420_FIFO_eic_opt'
../../../../../../UTILS/DEBUG/print_funcs.o:(.rodata.CC2420_FIFO_eic_opt+0x0): first defined here

I know that this CC2420_FIFO_eic_opt is only defined in a header file that has the inclusion guide in the begining, so I really don't undertand how can this header file been included twice.

Anyone knows?