IoT-32-New_project\IoT-32-New_project.axf: Error: L6200E: Symbol __asm___8_MyInit_c_MyInit____REV16 multiply defined (by myinit_1.o and myinit.o).
IoT-32-New_project\IoT-32-New_project.axf: Error: L6200E: Symbol __asm___8_MyInit_c_MyInit____RRX multiply defined (by myinit_1.o and myinit.o).
IoT-32-New_project\IoT-32-New_project.axf: Error: L6200E: Symbol MyInit multiply defined (by myinit_1.o and myinit.o).
IoT-32-New_project\IoT-32-New_project.axf: Error: L6200E: Symbol __asm___8_Public_c____REV16 multiply defined (by public_1.o and public.o).
IoT-32-New_project\IoT-32-New_project.axf: Error: L6200E: Symbol __asm___8_Public_c____RRX multiply defined (by public_1.o and public.o).
IoT-32-New_project\IoT-32-New_project.axf: Error: L6200E: Symbol __asm___8_System_c_System____REV16 multiply defined (by system_1.o and system.o).
IoT-32-New_project\IoT-32-New_project.axf: Error: L6200E: Symbol __asm___8_System_c_System____RRX multiply defined (by system_1.o and system.o).
IoT-32-New_project\IoT-32-New_project.axf: Error: L6200E: Symbol System multiply defined (by system_1.o and system.o).
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 0 warning and 11 error messages.
今天看视频学习出现了这个错误,我是在复制代码的基础上更改的,视频的每个步骤我都跟着做,反复看了几遍视频发现步骤没错,只能是复制的代码出错了。到网上搜索了半天没有找到解决办法。我一直以为“重复定义”是因为某个符号在某个.h或.c文件下重复定义了,点开myint.c和myint.h文件比对一个参考代码没有发现错误,挑选几个其他.c和.h文件也没有找到错误,后来我突然发现在project的子目录下有两个子文件夹里有重复的.c文件,删掉一个问题解决。
问题的发现:
问题的解决:
|