You can find multiple examples in (assuming a default installation) "/opt/vxipnp/hpux/NIvisa/Examples". We recommend gcc but you should be able to use cc if you want. The examples use a Makefile with directions for each.
Dan Mondrik
Senior Software Engineer, VISA
National Instruments