This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error Compiling project - can't find header file

I am getting the following error upon compiling a simple project for STM32F407VG on MDK version 5 for the Discovery Board. All packs are installed fine. Please note, the header file is all uppercase in this example. Any suggestions? Do I need to transition the project to version 5?

Build target 'CPUAsmLab'
assembling startup_stm32f4xx.s...
compiling system_stm32f4xx.c...
system_stm32f4xx.c(117): error: #5: cannot open source input file "stm32f4xx.h": No such file or directory #include "stm32f4xx.h"
system_stm32f4xx.c: 0 warnings, 1 error
compiling main.c...
src\main.c(2): error: #5: cannot open source input file "STM32F4xx.h": No such file or directory #include "STM32F4xx.h"
src\main.c: 0 warnings, 1 error
".\template.axf" - 2 Error(s), 0 Warning(s).
Target not created

Parents
  • You need to right-click in the .c file that calls the header file (or the .c that calls the header file wich calls the header [...] wich calls the header file missing, don't matters how many levels of calls), and in the "options for file", in the C/C++ tab, you must include the path of your header file that is missing.

Reply
  • You need to right-click in the .c file that calls the header file (or the .c that calls the header file wich calls the header [...] wich calls the header file missing, don't matters how many levels of calls), and in the "options for file", in the C/C++ tab, you must include the path of your header file that is missing.

Children