链接错误 multiply defined (by misc_1.o and misc.o).
http://www.stmcu.org/module/forum/thread-286128-1-1.html
*** Using Compiler 'V5.06 (build 20)', folder: 'd:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Target 1'
compiling stm32f10x_it.c...
linking...
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___6_misc_c_d0fc1254____REV16 multiply defined (by misc_1.o and misc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___6_misc_c_d0fc1254____REVSH multiply defined (by misc_1.o and misc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___6_misc_c_d0fc1254____RRX multiply defined (by misc_1.o and misc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol NVIC_Init multiply defined (by misc_1.o and misc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol NVIC_PriorityGroupConfig multiply defined (by misc_1.o and misc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol NVIC_SetVectorTable multiply defined (by misc_1.o and misc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol NVIC_SystemLPConfig multiply defined (by misc_1.o and misc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol SysTick_CLKSourceConfig multiply defined (by misc_1.o and misc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_APB2PeriphResetCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_BackupResetCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_APB1PeriphResetCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___16_stm32f10x_gpio_c_f8e8e39a____REV16 multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___16_stm32f10x_gpio_c_f8e8e39a____REVSH multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___16_stm32f10x_gpio_c_f8e8e39a____RRX multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_AFIODeInit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_DeInit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_ETH_MediaInterfaceConfig multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_EXTILineConfig multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_EventOutputCmd multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_EventOutputConfig multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_Init multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_PinLockConfig multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_PinRemapConfig multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_ReadInputData multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_ReadInputDataBit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_ReadOutputData multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_ReadOutputDataBit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_ResetBits multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_SetBits multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_StructInit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_Write multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol GPIO_WriteBit multiply defined (by stm32f10x_gpio_1.o and stm32f10x_gpio.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_GetClocksFreq multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___15_stm32f10x_rcc_c_49e27980____REV16 multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___15_stm32f10x_rcc_c_49e27980____REVSH multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___15_stm32f10x_rcc_c_49e27980____RRX multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_ADCCLKConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_AHBPeriphClockCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_APB1PeriphClockCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_APB2PeriphClockCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_AdjustHSICalibrationValue multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_ClearFlag multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_ClearITPendingBit multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_ClockSecuritySystemCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_DeInit multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_GetFlagStatus multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_GetITStatus multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_GetSYSCLKSource multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_HCLKConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_HSEConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_HSICmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_ITConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_LSEConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_LSICmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_MCOConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_PCLK1Config multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_PCLK2Config multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_PLLCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_PLLConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_RTCCLKCmd multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_RTCCLKConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_SYSCLKConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_USBCLKConfig multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol RCC_WaitForHSEStartUp multiply defined (by stm32f10x_rcc_1.o and stm32f10x_rcc.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___18_system_stm32f10x_c_5d646a67____REV16 multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___18_system_stm32f10x_c_5d646a67____REVSH multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol __asm___18_system_stm32f10x_c_5d646a67____RRX multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol SystemCoreClock multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol AHBPrescTable multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol SystemCoreClockUpdate multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o).
.\Objects\stm32demo.axf: Error: L6200E: Symbol SystemInit multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o).
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 0 warning and 71 error messages.
".\Objects\stm32demo.axf" - 71 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:05
今天开始学习stm32使用,按照野火的STM32库开发实战指南第三章配置开发环境,编译时候出现上述错误,网上查了下是重复定义错误,因为我的IDE是最新的5.16,书上用的是4.12,所以配置起来还是有点麻烦,而最新的基本不用怎么配置,Project创建的时候就加入的启动文件等必须的相关文件,所以书上的那几个文件StartCode、CMSIS、FWlib、Output这几个通通不需要,只留个User文件夹放自己写的代码就够了,5.16建立好的Project的目录如下图:
红框里的Device里已经包含了所有需要的文件,不需要像4.12版本一样的配置了。
链接错误 multiply defined (by misc_1.o and misc.o).的更多相关文章
- vs2010下sort比较函数链接错误问题
环境:win7 + vs2010 + C++ 实现vector的sort算法,在类的头文件中写入比较函数时会出现链接错误: error LNK2005: "bool __cdecl comp ...
- vs2010静态链接MFC库报链接错误
由于需要将MFC程序在其它电脑上运行,所以需要将动态链接的MFC改成静态链接,本以为很简单,没想到链接的时候出现下面的链接错误: uafxcw.lib(afxmem.obj) : error LNK2 ...
- Xerces链接错误原因之/Zc:wchar_t-设置不一致
今天程序需要使用Xerces作为xml文件的解析与序列化工具,使用的是Xerces2.7.0版本.具体编译教程如下: 成功编译出了Xerces.dll和Xerces.lib.但是在链接到主工程的时候, ...
- C++常见gcc编译链接错误解决方法
除非明确说明,本文内容仅针对x86/x86_64的Linux开发环境,有朋友说baidu不到,开个贴记录一下(加粗字体是关键词): 用“-Wl,-Bstatic”指定链接静态库,使用“-Wl,-Bdy ...
- VC中链接错误,提示string重定义
VC链接错误,说是string已经有了实现了,只要 rebuild 一下好了. Linking...LINK : warning LNK4075: ignoring '/EDITANDCONTINUE ...
- 静态链接和动态链接库混用导致的链接错误LINK2005
对于一个静态链接库L.lib,它的使用者app.exe会静态链接L.lib,意思是app.exe会将L.lib中的代码(app需要的部分,例如函数定义,类的定义等等)链接到app.exe中. 而对 ...
- KEIL软件中编译时出现的Error L6200E: symbol multiply defined ...的解决方法
原因:如LCD.C文件使用了bmp.h中的image[ ]变量,那么就不能将#include"bmp.h"放在LCD.H中,要将#include"bmp.h"放 ...
- keil的重复定义问题:Error: L6200E: Symbol F6x8 multiply defined
keil的重复定义问题:Error: L6200E: Symbol F6x8 multiply defined 在驱动oled和电容按键都遇到了,所以记录这个错误,以后再遇到也不至于手足无措 Keil ...
- 模板函数(template function)出现编译链接错误(link error)之解析
总的结论: 将template function 或者 template class的完整定义直接放在.h文件中,然后加到要使用这些template function的.cpp文件中. 1. 现 ...
随机推荐
- 《零基础学JavaScript(全彩版)》学习笔记
<零基础学JavaScript(全彩版)>学习笔记 二〇一九年二月九日星期六0时9分 前期: 刚刚学完<零基础学HTML5+CSS3(全彩版)>,准备开始学习JavaScrip ...
- 2.5星|《哈佛商学院管理与MBA案例全书》:书名太唬人了,依据中文经管书汇编整理而成
哈佛商学院管理与MBA案例全书(套装十册) 看到最后,列出的参考书目中全部是中文经管书,才明白这本书不是哈佛商学院出版的,是国内的编辑做的汇编.参考书目中除了中文经管书之外,还有一套<哈佛商学院 ...
- 使用Firebug或chrome-devToolBar深入学习javascript语言核心
使用Firebug和chrome-devToolBar调试页面样式或脚本是前端开发每天必做之事.这个开发神器到底能给我们带来哪些更神奇的帮助呢?这几天看的一些资料中给了我启发,能不通过Firebug和 ...
- 手动配置网卡配置文件ifcfg-eth0
linux 其他知识目录 原文链接:https://www.cnblogs.com/arvintang/p/5990599.html 网络接口配置文件[root@localhost ~]# cat / ...
- 2.openldap安装
1.安装步骤如下 获取软件包 安装软件包(rpm或者源码编译) 生产openldap配置文件及数据库文件 配置 添加目录树条目 加载slapd进程 验证 2.所需安装包说明 openldap,open ...
- hive 2以上版本启动异常 Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
hive2.0以上的版本启动时 抛出 “Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreCli ...
- [C++] Solve "Cannot run program "gdb": Unknown reason" error
In Mac OSX, The Issue Image: 1. Build the project on Eclipse successfully. 2. Run gdb on command lin ...
- NumPy常用函数总结
转载:https://www.cnblogs.com/hd-chenwei/p/6832732.html NumPy库总包含两种基本的数据类型:矩阵和数组,矩阵的使用类似Matlab,本实例用得多的是 ...
- 对其中的一个特点将NABC的分析结果
一.题目要求 每一个组员针对其中的一个特点将NABC的分析结果发表博客上(截止日期4月8日晚24:00前). 二.分析结果 特点之一:通讯方便 <渴了么>这个安卓APP特点之一就是通讯方便 ...
- 主从复制redis
编辑主服务器的配置文件 注释下面一项 # slaveof 192.168.10.1 6379 主从复制 一主可以有多从,支持链式连级 一主多从 1:修改从服务器的配置文件/etc/redis.co ...