Unmodified 'Examples' ESP WiFi sketches compile error

Ok cool... that code you have may have other issues given it is quite old.

There are a lot of ESP32 example sketches, so if you can get those working there is probably one that is close to what you want, that you can play around with.