Thanks. Installing the older version of Visual Studio 2017 enabled me to build my program with Root. It runs fine on my build machine.
Unfortunately, there is a fundamental problem with Root on a machine without a C++ compiler or its SDK. See the other thread: Looks like I have to abandon Root on Windows