WebSphere WebSphere Business Integration Message Service Clients for C/C++ Version 1.2.7 and .NET Version 1.2.6 Operating Systems: AIX, Linux, Solaris, Windows

Building the C or C++ sample applications

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

  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. AIX Linux Solaris If you are using AIX, HP-UX, Linux, or Solaris type make.
    2. Windows 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.
  4. Before running the samples, make sure that the directory where you have installed XMS is specified by the appropriate environment variable:
    1. AIX On AIX, the <install_dir>/lib directory must be in the path specified by the LIBPATH environment variable.
    2. Linux Solaris On Linux and Solaris, the <install_dir>/lib directory must be in the path specified by the LD_LIBRARY_PATH environment variable.
    3. Windows 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.
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: 18 Jun 2008

© Copyright IBM Corporation 2005, 2008. All Rights Reserved.