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> \
$STM_ROOT/lib/dataport.o \
$STM_ROOT/lib/libgcc.a $STM_ROOT/lib/x_stubs.o \
-lm -lsocket -lnsl -L/usr/ucblib -lucb -ldl
●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:
In this syntax,
program
is the name of the executable image.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.