Linux Setup

This section begins the machine specific information for setting up Open C API on a Linux system and includes the necessary information you need to create environment variables and to compile, link, and run your Open C API programs.
 
Environment variable Description
UGII_USERFCN This variable is defined in .ugii_env and points to the NX directory where the Open C API libraries reside.

 
Although this variable is defined for you in .ugii_env, you can customize this variable for your own Open C API environment. For example, you can define UGII_USERFCN to point to the directory that contains the libraries. On a typical system, this environment variable points to: ${UGII_BASE_DIR}/ugii.
 
 

Running Open C API Programs

Open C API programs can be run from any of three environments: the operating system, an NX Open C API interface, or an NX GRIP program.
 
Linux/MacOS does not require special run time support for Open C API programs. To run an external Open C API program, type its name at the NX shell prompt. Any ASCII terminal can be used to run these programs.
 
GRIP Open C API Interface
 
Any task which can be run from the UFUN interface can also execute from a GRIP program using the XSPAWN command. See the GRIP programmers manual for more details.