Function definition not found if enum parameter isn't a the end

Compilers generally don’t have bugs in parsing standard language syntax. The bugs that tend to be found in compilers are generally quite obscure.

It’s almost certainly something that got mis-matched or configured wrong – computers don’t have random number generators on the inside to figure out what “build” means – but if you don’t have the files still, then it’s impossible to debug and figure out what it is.

Good news: You started over and don’t have this problem now.
Bad news: If the problem happens again, you don’t yet know what causes it, and thus it will take longer to debug it at that time.