Using -include file GCC option causes errors.
I have an STM32H743 project generated and i'd like to include an external file using the GCC "-include file" command option. I've added it as shown in this screenshot under C/C++ Build > settings > MCU/MPU GCC Compiler > Miscellaneous

The problem is the compiler doesn't seem to find file.c, no matter where I place it within the project directory. I've tried placing inside the same folder as main.c with no success.
Here's a good reference to where this option comes from.
Preprocessor Options (Using the GNU Compiler Collection (GCC))
The error:
<command-line>: fatal error: file.c: No such file or directory
compilation terminated.
Update: I think i've figured out how to get it to know where the file is, by adding the path under C/C++ General > Paths and Symbols > Source Location. But I still have these make errors:
make: *** [Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk:88: Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o] Error 1
make: *** [Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk:88: Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.o] Error 1
make: *** [Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk:88: Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc_ex.o] Error 1
make: *** [Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk:88: Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.o] Error 1
make: *** [Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk:88: Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.o] Error 1
make: *** [Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk:88: Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.o] Error 1
make: *** [Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk:88: Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.o] Error 1
make: *** [Drivers/STM32H7xx_HAL_Driver/Src/subdir.mk:88: Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.o] Error 1
I've used this -include option in other IDE's before with no problems but i'm a bit new to cubeIDE.
