WebSphere Message Service Clients for C/C++ and .NET, Version 1.2 Operating Systems: Linux, Windows

Building the C or C++ sample applications

When you build a sample C or C++ application, an executable version of your chosen sample 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

  1. Open a command prompt window.
  2. Change to the directory that contains the source and makefile for the sample application you want to build.
  3. Type one of the following commands:
    1. Linux On Linux, type make.
    2. Solaris On Solaris, type make.
    3. Windows On 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.
  4. Before running the samples, make sure that the directory where you have installed XMS is specified by the appropriate environment variable:
    1. Linux Solaris On Linux and Solaris, the <install_dir>/lib directory must be in the path specified by the LD_LIBRARY_PATH environment variable.
    2. Windows On Windows, the <install_dir>\bin directory must be in the path specified by the PATH environment variable.
Related concepts
The sample applications
Related tasks
Running the sample applications
Building the .NET sample applications

Task topic

Terms of Use | Rate this page

Last updated: 7 Dec 2005

© Copyright IBM Corporation 2005. All Rights Reserved.