编译STM32工程找不到input file “deprecated_definitions.h”

本文介绍了一个常见的编译错误——由于文件路径过长导致的编译失败,并提供了解决方案:将工程放置于磁盘根目录下,以此避免路径长度限制引发的问题。

工程里是有这个文件的,编译的时候就是找不到,哈哈,起始是文件路径太长了。把工程放到磁盘根目录下就可以了。deprecated_definitions.h

Rebuild started: Project: ZHOUER25 *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\zhou r\ARM\ARMCC\Bin' Rebuild target 'ZHOUER25' compiling stm32f1xx_it.c... Error: C4065E: type of input file 'display.h' unknown compiling usart.c... Error: C4065E: type of input file 'display.h' unknown compiling stm32f1xx_hal_msp.c... Error: C4065E: type of input file 'display.h' unknown compiling main.c... Error: C4065E: type of input file 'display.h' unknown compiling adc.c... Error: C4065E: type of input file 'display.h' unknown compiling tim.c... Error: C4065E: type of input file 'display.h' unknown compiling gpio.c... Error: C4065E: type of input file 'display.h' unknown assembling startup_stm32f103xe.s... compiling stm32f1xx_hal_adc.c... compiling stm32f1xx_hal_gpio_ex.c... compiling stm32f1xx_hal_exti.c... compiling stm32f1xx_hal.c... compiling stm32f1xx_hal_cortex.c... compiling stm32f1xx_hal_adc_ex.c... compiling stm32f1xx_hal_rcc_ex.c... compiling stm32f1xx_hal_rcc.c... compiling stm32f1xx_hal_flash_ex.c... compiling stm32f1xx_hal_pwr.c... compiling stm32f1xx_hal_flash.c... compiling stm32f1xx_hal_gpio.c... compiling stm32f1xx_hal_dma.c... compiling system_stm32f1xx.c... compiling display.c... compiling button.c... ..\MyCode\button.h(9): warning: #1295-D: Deprecated declaration buttonflag_get - give arg types int buttonflag_get(); ..\MyCode\button.c: 1 warning, 0 errors compiling stm32f1xx_hal_uart.c... compiling stm32f1xx_hal_tim_ex.c... compiling stm32f1xx_hal_tim.c... "ZHOUER25\ZHOUER25.axf" - 7 Error(s), 1 Warning(s). Target not created. Build Time Elapsed: 00:00:04
最新发布
12-24
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值