Compiling erro C2061 ( identifier 'STAT_CHUNK')问题

编译时遇到错误C2061:语法错误,标识符'STAT_CHUNK'。该问题是由于版本不匹配导致,解决方案包括检查并重命名项目中的filter.h文件,或者调整IncludePath确保系统头文件路径优先。参考相关资料可找到更多解决办法。

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

Compiling erro C2061 ( identifier ‘STAT_CHUNK’)

错误:
[cpp] view plain copy print?

error C2061: syntax error : identifier ‘STAT_CHUNK’
…………..
解决:应该是版本的问题,检查你的项目目录下的filter.h文件,重命名。重编,OK

因为filter.h文件是windows kit下sdk内的文件,一般重命名自己的filter.h文件即可解决。如果不想重命名,则需要将系统默认环境变量 (IncludePath)includedirectory (IncludePath)是vs默认的系统环境变量包含系统include path,可在属性宏里具体查看。

ref:
1、Compiling erro C2061 with 2010 beta 2

以下信息能否看出静态内存占用大小? Build started: Project: Project *** Using Compiler 'V6.21', folder: 'D:\Keil_v5\ARM\ARMCLANG\Bin' Build target 'GD32L23x' compiling std_i2c.c... compiling systick.c... compiling main.c... compiling dev_rx8010dj.c... compiling gd32l23x_it.c... compiling charge_sc8815.c... compiling std_fmc.c... compiling std_adc.c... compiling std_led.c... compiling heat_sy8366a.c... compiling std_pwm.c... compiling battery_manage.c... compiling std_stdio.c... compiling std_time.c... compiling std_uart.c... compiling std_log.c... compiling std_upgrade.c... compiling std_fwdgt.c... compiling gd32l23x_dac.c... compiling system_gd32l23x.c... compiling std_485net.c... compiling gd32l23x_exti.c... compiling gd32l23x_dma.c... compiling gd32l23x_gpio.c... compiling gd32l23x_misc.c... compiling gd32l23x_rcu.c... compiling gd32l23x_syscfg.c... compiling gd32l23x_usart.c... compiling gd32l23x_cau.c... compiling gd32l23x_cau_des.c... compiling gd32l23x_cau_tdes.c... compiling gd32l23x_dbg.c... compiling gd32l23x_fwdgt.c... compiling gd32l23x_cau_aes.c... compiling gd32l23x_vref.c... compiling gd32l23x_rtc.c... compiling gd32l23x_adc.c... compiling gd32l23x_cmp.c... compiling gd32l23x_crc.c... compiling gd32l23x_fmc.c... compiling gd32l23x_i2c.c... assembling startup_gd32l23x.s... compiling gd32l23x_lpuart.c... compiling gd32l23x_pmu.c... compiling gd32l23x_spi.c... compiling gd32l23x_trng.c... compiling gd32l23x_wwdgt.c... compiling gd32l23x_timer.c... compiling gd32l23x_ctc.c... compiling gd32l23x_lptimer.c... compiling gd32l23x_slcd.c... compiling gd32l233r_eval.c... linking... Program Size: Code=46794 RO-data=13362 RW-data=1328 ZI-data=2736 FromELF: creating hex file... After Build - User command #1: ..\Objects\hex_crc.bat hex2bin v2.5, Copyright (C) 2017 Jacques Pelletier & contributors Allocate_Memory_and_Rewind: Lowest address: 0800C000 Highest address: 0801AC2F Starting address: 0800C000 Max Length: 60464 Binary file start = 0800C000 Records start = 0800C000 Highest address = 0801AC2F Pad Byte = FF ..\Objects\App.bin Checksum: 0xD6 "..\Objects\App.axf" - 0 Error(s), 0 Warning(s). Build Time Elapsed: 00:00:30
06-12
Rebuild started: Project: lsd *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\keil5\ARM\ARMCC\Bin' Rebuild target 'Template' assembling startup_stm32f103xe.s... compiling IWGA.c... ..\..\Drivers\IWGA\IWGA.c(1): error: #5: cannot open source input file "./IWGA/IWGA.h": No such file or directory #include "./IWGA/IWGA.h" ..\..\Drivers\IWGA\IWGA.c: 0 warnings, 1 error compiling stm32f1xx_hal_dac_ex.c... compiling stm32f1xx_it.c... compiling stm32f1xx_hal_eth.c... compiling stm32f1xx_hal_cortex.c... compiling delay.c... compiling stm32f1xx_hal_cec.c... compiling main.c... compiling stm32f1xx_hal_gpio_ex.c... compiling usart.c... compiling sys.c... compiling stm32f1xx_hal_dac.c... compiling stm32f1xx_hal_crc.c... compiling stm32f1xx_hal.c... compiling stm32f1xx_hal_adc.c... compiling system_stm32f1xx.c... compiling stm32f1xx_hal_adc_ex.c... compiling stm32f1xx_hal_exti.c... compiling stm32f1xx_hal_flash.c... compiling stm32f1xx_hal_hcd.c... compiling stm32f1xx_hal_gpio.c... compiling stm32f1xx_hal_can.c... compiling stm32f1xx_hal_flash_ex.c... compiling stm32f1xx_hal_dma.c... compiling stm32f1xx_hal_i2c.c... compiling stm32f1xx_hal_iwdg.c... compiling stm32f1xx_hal_msp_template.c... compiling stm32f1xx_hal_pcd_ex.c... compiling stm32f1xx_hal_rcc_ex.c... compiling stm32f1xx_hal_i2s.c... compiling stm32f1xx_hal_nand.c... compiling stm32f1xx_hal_irda.c... compiling stm32f1xx_hal_pwr.c... compiling stm32f1xx_hal_pccard.c... compiling stm32f1xx_hal_nor.c... compiling stm32f1xx_hal_pcd.c... compiling stm32f1xx_hal_rtc.c... compiling stm32f1xx_hal_rtc_ex.c... compiling stm32f1xx_hal_sram.c... compiling stm32f1xx_hal_smartcard.c... compiling stm32f1xx_hal_rcc.c... compiling stm32f1xx_hal_timebase_tim_template.c... compiling stm32f1xx_hal_mmc.c... compiling stm32f1xx_ll_adc.c... compiling stm32f1xx_hal_usart.c... compiling stm32f1xx_hal_uart.c... compiling stm32f1xx_ll_crc.c... compiling stm32f1xx_ll_dac.c... compiling stm32f1xx_ll_dma.c... compiling stm32f1xx_ll_exti.c... compiling stm32f1xx_ll_gpio.c... compiling stm32f1xx_hal_spi.c... compiling stm32f1xx_hal_tim_ex.c... compiling stm32f1xx_hal_sd.c... compiling stm32f1xx_ll_i2c.c... compiling stm32f1xx_ll_pwr.c... compiling stm32f1xx_ll_rcc.c... compiling stm32f1xx_ll_rtc.c... compiling stm32f1xx_ll_spi.c... compiling stm32f1xx_ll_tim.c... compiling stm32f1xx_ll_usart.c... compiling stm32f1xx_hal_tim.c... compiling stm32f1xx_hal_wwdg.c... compiling stm32f1xx_ll_fsmc.c... compiling stm32f1xx_ll_sdmmc.c... compiling stm32f1xx_ll_utils.c... compiling stm32f1xx_ll_usb.c... ".\Objects\lsd.axf" - 1 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:07什么问题怎么解决
最新发布
07-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ShineSpark

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值