I assume you are using Arduino IDE. If so, ignore it.
If it compiles, ignore those library error. been there done that.Apparently Arduino can't handle Marlin. I get a crap load of them.
PlatformIO work much better, but I can't figure out how to use it yet.