Using Data Import : Preparing and Executing Programs : UNIX Solaris Systems

UNIX Solaris Systems

Define the environment variable STM_ROOT, as follows:

% setenv STM_ROOT root_name

Contact your Rational Statemate manager for the name of the root directory of the Rational Statemate tree.

Use the following command to compile and link:

cc -o <program> <otherflags> <myprog.c> \
-L$STM_ROOT/lib -ldata_import \
$STM_ROOT/lib/x_stubs.o \
-lm -lsocket -lnsl

In this syntax:

program—The name you want to assign to the executable image
otherflags—Can include -g or -O
myprog.c—The name of the file containing the C program

Use the following command to execute your program:

program

Optional qualifiers, such as debug, can be added in the compile, link, and execute stages. Refer to your operating system reference manuals for the available options.

The DataImport API library on Solaris is delivered as a shared library (.so): libdata_import.so