cannot open source input file "printf.h": No such file or directory

本文介绍了解决在Keil编译器中遇到无法找到printf.h文件的问题的方法。通过在IncludePaths中正确设置printf.h文件的路径,可以有效避免编译错误,确保项目的顺利进行。

在keil中编译是提示main.c(1): error: #5: cannot open source input file "printf.h": No such file or directory

解决方法:


在上图Include Paths中添加"printf.h"的路径

Build started: Project: noye01 *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'Target 1' compiling list.c... ..\User\FreeRTOSConfig.h(184): error: #5: cannot open source input file "trcRecorder.h": No such file or directory #include "trcRecorder.h" ..\freertos\list.c: 0 warnings, 1 error compiling heap_4.c... ..\User\FreeRTOSConfig.h(184): error: #5: cannot open source input file "trcRecorder.h": No such file or directory #include "trcRecorder.h" ..\freertos_port\MemMang\heap_4.c: 0 warnings, 1 error compiling timers.c... ..\User\FreeRTOSConfig.h(184): error: #5: cannot open source input file "trcRecorder.h": No such file or directory #include "trcRecorder.h" ..\freertos\timers.c: 0 warnings, 1 error compiling tasks.c... ..\User\FreeRTOSConfig.h(184): error: #5: cannot open source input file "trcRecorder.h": No such file or directory #include "trcRecorder.h" ..\freertos\tasks.c: 0 warnings, 1 error compiling main.c... ..\User\FreeRTOSConfig.h(184): error: #5: cannot open source input file "trcRecorder.h": No such file or directory #include "trcRecorder.h" ..\User\main.c: 0 warnings, 1 error compiling port.c... ..\User\FreeRTOSConfig.h(184): error: #5: cannot open source input file "trcRecorder.h": No such file or directory #include "trcRecorder.h" ..\freertos_port\RVDS\ARM_CM3\port.c: 0 warnings, 1 error compiling queue.c... ..\User\FreeRTOSConfig.h(184): error: #5: cannot open source input file "trcRecorder.h": No such file or directory #include "trcRecorder.h" ..\freertos\queue.c: 0 warnings, 1 error compiling event_groups.c... ..\User\FreeRTOSConfig.h(184): error: #5: cannot open source input file "trcRecorder.h": No such file or directory #include "trcRecorder.h" ..\freertos\event_groups.c: 0 warnings, 1 error compiling croutine.c... ..\User\FreeRTOSConfig.h(184): error: #5: cannot open source input file "trcRecorder.h": No such file or directory #include "trcRecorder.h" ..\freertos\croutine.c: 0 warnings, 1 error ".\Objects\noye01.axf" - 9 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:01
最新发布
11-07
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值