I've had this issue happen on 2 different source files and it caused me considerable frustration before I realised what was happening.
I was taking some code out of one of my source files to remove some functionality. I commented out the input parameter section using comments of the surrounding type - /* --- */
The Ninja generated code ignored these comments and was giving me an error saying possible missing reference because the TYPE of that input parameter, which was enum, had also been commented out; it was still trying to compile the source including that input parameter.
When I changed the comments to the // type on each line, the error disappeared.
Regards,
Will.
Comment