Define the environment variable
STM_ROOT
, as follows: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
●program
—The name you want to assign to the executable image
●
●myprog.c
—The name of the file containing the C programUse the following command to execute your 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