Using SDL2 & Visual Studio

Have been thinking about attempting to learn SDL (Simple DirectMedia Layer) for a wee while so what better way to spend a day off.   It didn’t start well however

Here’s a typical example “Hello World” program in Visual Studio.
Hello WorldLook what happens when I attempt to include the SDL header.  My main function becomes a member function and therefore won’t build.
SDL-Header-Main

Undefining main fixes the issue thanks to rodrigo at good ol’StackOverflow.undef-main