Keil :error: identifier "int8_t" is undefined 报错

今天花了一个晚上去查错:

以下是报错信息:

*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'F:\Keil\ARM\ARMCC\Bin'
Rebuild target 'Target 1'
assembling startup_stm32f10x_hd.s...
compiling system_stm32f10x.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\CMSIS\system_stm32f10x.c: 0 warnings, 6 errors
compiling core_cm3.c...
compiling misc.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\misc.c: 0 warnings, 6 errors
compiling stm32f10x_adc.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c: 0 warnings, 6 errors
compiling stm32f10x_bkp.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_bkp.c: 0 warnings, 6 errors
compiling stm32f10x_crc.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_crc.c: 0 warnings, 6 errors
compiling stm32f10x_cec.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_cec.c: 0 warnings, 6 errors
compiling stm32f10x_can.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_can.c: 0 warnings, 6 errors
compiling stm32f10x_dbgmcu.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c: 0 warnings, 6 errors
compiling stm32f10x_dac.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c: 0 warnings, 6 errors
compiling stm32f10x_exti.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c: 0 warnings, 6 errors
compiling stm32f10x_dma.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dma.c: 0 warnings, 6 errors
compiling stm32f10x_gpio.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: 0 warnings, 6 errors
compiling stm32f10x_i2c.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c: 0 warnings, 6 errors
compiling stm32f10x_flash.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c: 0 warnings, 6 errors
compiling stm32f10x_fsmc.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c: 0 warnings, 6 errors
compiling stm32f10x_pwr.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c: 0 warnings, 6 errors
compiling stm32f10x_iwdg.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c: 0 warnings, 6 errors
compiling stm32f10x_rcc.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c: 0 warnings, 6 errors
compiling stm32f10x_rtc.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c: 0 warnings, 6 errors
compiling stm32f10x_spi.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_spi.c: 0 warnings, 6 errors
compiling stm32f10x_sdio.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_sdio.c: 0 warnings, 6 errors
compiling stm32f10x_tim.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_tim.c: 0 warnings, 6 errors
compiling stm32f10x_usart.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c: 0 warnings, 6 errors
compiling main.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\User\main.c: 0 warnings, 6 errors
compiling stm32f10x_wwdg.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_wwdg.c: 0 warnings, 6 errors
compiling stm32f10x_it.c...
..\Libraries\CMSIS\stm32f10x.h(474): error:  #7: unrecognized token
    * @}
..\Libraries\CMSIS\stm32f10x.h(474): error:  #40: expected an identifier
    * @}
..\Libraries\CMSIS\stm32f10x.h(488): error:  #20: identifier "int8_t" is undefined
  typedef int8_t  s8;
..\Libraries\CMSIS\stm32f10x.h(492): error:  #20: identifier "int8_t" is undefined
  typedef const int8_t sc8;   /*!< Read Only */
..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "int8_t" is undefined
  typedef 
_IO int8_t   vs8;
..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "int8_t" is undefined
  typedef 
_I int8_t vsc8;   /*!< Read Only */
..\User\stm32f10x_it.c: 0 warnings, 6 errors
".\Objects\BH-F103.axf" - 156 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:10

我一直将关注点放在了 identifier “int8_t” is undefined 上,
实际上应该从第一行报错检查起。
也就是
…\Libraries\CMSIS\stm32f10x.h(474): error: #7: unrecognized token
* @}
将这个问题解决之后就没问题了。

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

鄢广杰

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

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

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

打赏作者

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

抵扣说明:

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

余额充值