Sudden compile errors on a sketch

You have multiple definitions of

  • loop()
  • setup()
  • hoursToString()
  • password
  • ssid

In C/C++ there can only be one definition for a function(*) or a variable, but not multiple! This also includes multiple definitions in different .cpp files!

For example:

You cannot have a setup() function in main.cpp and NTPDateTime.main.cpp!

(*) except for function over

You can use pre-formatted text and paste your error-messages and code fragements.