background image
<< Defining Transactions and Rendezvous Points | run the script from the LoadRunner Controller >>
<< Defining Transactions and Rendezvous Points | run the script from the LoadRunner Controller >>

Compiling Scripts

Appendixes Programming Scripts on UNIX Platforms
Creating Vuser Scripts
Chapter C, page 483
Compiling Scripts
After you modify the template, you compile it with the appropriate
Makefile
in the
script's directory. Note that for C++ compiling, you must use the native compiler (not
gnu). The compiler creates a dynamic library called:
libtest.so (solaris)
libtest.a (AIX)
libtest.sl (HP)
You can modify the
Makefile
and assign additional compiler flags and libraries by
modifying the appropriate sections.
If you are working with a general template, you must include your application's
libraries and header files. For example, if your application uses a library called
testlib
, include it in the LIBS section.
After you modify the
makefile
, type Make from the command line in the working
directory to create the dynamic library files for the Vuser script.
LIBS = \
-testlib \
-lLrun50 \
-lm