I’ve just analyzed the log and something is weird on the build commands:
On every working build command, you have the option -I”C:/Users/..../Porting STM32F4xx/BACnet_STM32/BACnet_inc”
On the command line which fails, this option is missing.
Did you modify the properties specifically on the directory “BACnet_object” ? If so, please do same actions that on my previous post, but this time, go to the properties by right-click on the “BACnet_object” folder.
Hope it solve the problem.