No such file or directory in Release but not in Debug mode, same include paths
Hi,
I am using STM32CubeIDE to program an MCU in the L5 series. When I'm building in Debug mode build is ok. When I try the same in Release mode I get the error "fatal error: filename.h: No such file or directory".
I have exactly the same include paths both in Debug and Release mode.
Besides the "filename.h" can be found in the right directory (the directory is included in the include paths).
I also tried with all the different compiler optimization options and I still get the error (I thought it could be an issue coming from -Os option).
Any idea towards which other direction I should look at?
Thanks in advance!