Embedded Keil uVision 5.23.0.0编译错误C4065E
我在的Embedded Keil uVision 5.23.0.0编译错误C4065E,embedded,keil,Embedded,Keil,我在的Keil uVision version 5.23.0.0中有一个项目,我的项目位于C:\Projects\TestProj\LCDController\下,位于NTFS文件系统上,使用Windows 7 x64 Ultimate作为虚拟机在VMWare Player中。现在,当我尝试构建项目时,会出现以下错误: *** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Rebui
Keil uVision version 5.23.0.0
中有一个项目,我的项目位于C:\Projects\TestProj\LCDController\
下,位于NTFS文件系统上,使用Windows 7 x64 Ultimate
作为虚拟机在VMWare Player
中。现在,当我尝试构建项目时,会出现以下错误:
*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'LcdController'
creating preprocessor file for gpio.c...
compiling gpio.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for main.c...
compiling main.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for i2c.c...
compiling i2c.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_it.c...
compiling stm32f1xx_it.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for spi.c...
compiling spi.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_msp.c...
compiling stm32f1xx_hal_msp.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for lcd_dogm128_6.c...
compiling lcd_dogm128_6.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for lcd_dogm128_6_alphabet.c...
compiling lcd_dogm128_6_alphabet.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for lcd_srf06eb.c...
compiling lcd_srf06eb.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for system_stm32f1xx.c...
compiling system_stm32f1xx.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_flash.c...
compiling stm32f1xx_hal_flash.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_spi_ex.c...
compiling stm32f1xx_hal_spi_ex.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_rcc.c...
compiling stm32f1xx_hal_rcc.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_tim.c...
compiling stm32f1xx_hal_tim.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_cortex.c...
compiling stm32f1xx_hal_cortex.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_gpio.c...
compiling stm32f1xx_hal_gpio.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_spi.c...
compiling stm32f1xx_hal_spi.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_gpio_ex.c...
compiling stm32f1xx_hal_gpio_ex.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_i2c.c...
compiling stm32f1xx_hal_i2c.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal.c...
compiling stm32f1xx_hal.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_rcc_ex.c...
compiling stm32f1xx_hal_rcc_ex.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_tim_ex.c...
compiling stm32f1xx_hal_tim_ex.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_pwr.c...
compiling stm32f1xx_hal_pwr.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_dma.c...
compiling stm32f1xx_hal_dma.c...
Error: C4065E: type of input file '..\Inc' unknown
creating preprocessor file for stm32f1xx_hal_flash_ex.c...
compiling stm32f1xx_hal_flash_ex.c...
Error: C4065E: type of input file '..\Inc' unknown
assembling startup_stm32f103xe.s...
linking...
.\LcdController\LcdController.axf: error: L6002U: Could not open file .\lcdcontroller\gpio.o: No such file or directory
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
".\LcdController\LcdController.axf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:04
Batch-Build summary: 0 succeeded, 1 failed, 0 skipped - Time Elapsed: 00:00:04
该错误(我认为)与项目包含路径相关:
为什么我会出现这些错误,以及如何解决这些错误?现在,根据@LP的评论,这是设置包含目录的过程:
步骤1-添加Inc目录
我正在通过keilgui
选择Inc
目录:
当我选择C:\Projects\TestProj\LCDController\Inc
目录时,我的目录路径被截断为。\Inc.
:。可能是Keil
中有bug,路径错误?其他两个include dir也会发生同样的情况。我不知道是否会发生这种情况,但这有时是有效的
关闭项目
克洛斯·凯尔
重新打开项目
这是因为Keil有许多内部错误。我不知道是否会出现这种情况,但有时这是可行的
关闭项目
克洛斯·凯尔
重新打开项目
这是因为Keil有许多内部错误。是Inc
目录,位于C:\Projects\TestProj\Inc
?inlcude中的其他人也一样paths@LPInc
位于C:\Projects\超声波\LCDController\Inc
,扩展问题。因此我认为。
不正确<代码>。
表示向上一级。您应该使用/Inc
。这不包括路径错误。如果是这样,您将得到“没有这样的文件/文件夹”错误。@LPs如果我将。
更改为
相同的错误仍然存在。是否Inc
目录位于C:\Projects\TestProj\Inc
?inlcude中的其他人也一样paths@LPInc
位于C:\Projects\超声波\LCDController\Inc
,扩展问题。因此我认为。
不正确<代码>。
表示向上一级。您应该使用/Inc
。这不包括路径错误。如果是这样,您将得到“没有这样的文件/文件夹”错误。@LPs如果我将更改为。
相同的错误仍然存在。