nrf52_vesc icon indicating copy to clipboard operation
nrf52_vesc copied to clipboard

Compilation fail

Open st0rfrasarn opened this issue 2 years ago • 3 comments

Hi,

i get this:

/usr/bin/arm-none-eabi-gcc' -O3 -g3 -mthumb -mabi=aapcs -L/home/busta/src/nRF5_SDK_15.3.0_59ac345/modules/nrfx/mdk -Tld_sd_52840.ld -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Wl,--gc-sections --specs=nano.specs -u _printf_float @_build/nrf52840_xxaa.in -Wl,-Map=_build/nrf52840_xxaa.map -o _build/nrf52840_xxaa.out /usr/lib/gcc/arm-none-eabi/12.2.1/../../../arm-none-eabi/bin/ld: _build/nrf52840_xxaa/storage.c.o:/home/busta/src/nrf52_vesc/storage.h:26: multiple definition of `m_config'; _build/nrf52840_xxaa/main.c.o:/home/busta/src/nrf52_vesc/storage.h:26: first defined here collect2: error: ld returned 1 exit status make: *** [/home/busta/src/nRF5_SDK_15.3.0_59ac345/components/toolchain/gcc/Makefile.common:294: _build/nrf52840_xxaa.out] Error 1

Compiling on Kali Linux Rolling

Any ideas? Thanks!

st0rfrasarn avatar Jan 03 '23 08:01 st0rfrasarn

Adding a line to storage.h seems to clear this error.

// Global variables extern config_data m_config;

joomyll avatar Jan 22 '23 18:01 joomyll

fixed: https://github.com/vedderb/nrf52_vesc/pull/5

bj97301 avatar Jun 15 '23 23:06 bj97301

@vedderb would you be able to merge this in?

bj97301 avatar Jun 16 '23 00:06 bj97301