Note, you must include the linking options for this to work. Although it doesn't do very much, the xhello program shows the basic steps involved in writing an XForms application. First, we include the forms header file, which gives us access to the XForms routines. With initialization taken care of, we can create as many graphic elements as we like. This brings up a note on terminology.
Many people think of a rectangular collection of objects on a screen as a window.
The XForms library refers to just such a collection as a form. For the rest of this series, it is best to consider the two terms interchangeable. There are a couple of things to notice at this point. Second, although installing the library may have taken some time, the result was well worth it. With just two variables and well under a dozen function calls, we have a fully fledged running program.