Vscode: cannot open source file “bits/c++config.h“

本文介绍了如何在遇到C++编译器配置文件如config.h、functexcept.h和move.h导入错误时,通过将这些文件移动到bits文件夹来解决常见问题的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本机搜索文件c++config.h,将其拖入bits文件夹目录下即可解决问题,诸如functexcept.h、move.h文件的报错也是这样处理。

Build target 'Target 1' compiling main.c... ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(46): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory #include "stm32f1xx_hal_conf.h" main.c: 0 warnings, 1 error compiling dht11.c... ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(46): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory #include "stm32f1xx_hal_conf.h" dht11.c: 0 warnings, 1 error compiling buzzer.c... buzzer.c(6): warning: #223-D: function "GPIO_SetBits" declared implicitly GPIO_SetBits(GPIOC, GPIO_Pin_7); buzzer.c(6): error: #20: identifier "GPIO_Pin_7" is undefined GPIO_SetBits(GPIOC, GPIO_Pin_7); buzzer.c(11): warning: #223-D: function "GPIO_ResetBits" declared implicitly GPIO_ResetBits(GPIOC, GPIO_Pin_7); buzzer.c(11): error: #20: identifier "GPIO_Pin_7" is undefined GPIO_ResetBits(GPIOC, GPIO_Pin_7); buzzer.c: 2 warnings, 2 errors compiling TFT_GFX.c... ..\STM32CubeF1\STM32Cube_FW_F1_V1.6.0\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h(46): error: #5: cannot open source input file "stm32f1xx_hal_conf.h": No such file or directory #include "stm32f1xx_hal_conf.h" TFT_GFX.c: 0 warnings, 1 error compiling TFT_FONTS.c... TFT_FONTS.c(23): error: #29: expected an expression .width = 8, TFT_FONTS.c(24): error: #29: expected an expression .height = 16, TFT_FONTS.c(25): error: #29: expected an expression .data = Font8x16_Data TFT_FONTS.c: 0 warnings, 3 errors ".\Objects\zuoye.axf" - 8 Error(s), 2 Warning(s). Target not created. Build Time Elapsed: 00:00:02
最新发布
06-26
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值