When you build a sample C or C++ application, an executable version
is created.
Before you begin
To build the C or C++ samples, you must have the appropriate compiler
installed as described in Operating environments.
Why and when to perform this task
This
topic provides
the information that you need to build the C and C++ applications.
Steps for this task
- Open a command prompt window.
- Change to the directory that contains the source and makefile for
the sample application you want to build.
- Type one of the following commands:
If you are using AIX, HP-UX, Linux,
or Solaris type make.
If you are using Windows,
type nmake.
The command builds an executable version of the application in
the current directory. This application has the same name as the folder; for
example, if you are building the C version of the sample message producer
application, SampleProducerC.exe is created in the SampleProducerC folder.
- Before running the samples, make sure that the directory where
you have installed XMS is specified by the appropriate environment variable:
On AIX,
the <install_dir>/lib directory must be in the path specified by the LIBPATH
environment variable.
On Linux and Solaris, the <install_dir>/lib
directory must be in the path specified by the LD_LIBRARY_PATH environment
variable.
On Windows,
the <install_dir>\bin directory must be in the path specified by the PATH
environment variable.
Note: If the application is built in 64bit mode then on Windows
<install_dir>/bin64 should be added to the PATH environment variable, in
place of <install_dir>/bin and on all other platforms <install_dir>/lib64
should be added to the appropriate environment variable, in place of <install_dir>/lib.