VS2017 is showing fake errors

If you are just talking about intellisense marking it but compiles fine, that’s just intellisense messing up. It usually does so when you change the header files. Closing and restarting VS fixes it for me.