peng-zhihui / ElectronBot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

linker error

Empolal opened this issue · comments

如题,尝试过复制原本的makefile.txt。

linker error

d:/progra1/stmicr1/gnu-to~1/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: error: linker script file 'D:/Document/Stm32/ElectronBot/STM32F405RGTx_FLASH.ld' appears multiple times
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[3]: *** [CMakeFiles\ElectronBot.elf.dir\build.make:976: ElectronBot.elf] Error 1
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:75: CMakeFiles/ElectronBot.elf.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:82: CMakeFiles/ElectronBot.elf.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:117: ElectronBot.elf] Error 2

仔细检查你的工程文件。连接器给出的错误已经很清晰了,ld文件出现了多次。