Building a CORBA C++ client

Why and when to perform this task

This topic provides an overview of how to build the code for a CORBA C++ client. The actual steps that you need to complete depend on your development environment.

For example, if you are using the Microsoft Visual C++ 6.0 compiler on Microsoft Windows NT to build a CORBA C++ client, you can use the following commands:

Steps for this task

  1. At a command line, type the following command:
    cl /c /GX /DEXCL_IRTC /DSOMCBNOLOCALINCLUDES -IWAS_HOME\include client.cpp 

    where:

    WAS_HOME
    is the directory into which WebSphere Application Server is installed.
    client
    is the name of the C++ client main code file.

  2. At a command line, type the following command:
    cl /c /GX /DEXCL_IRTC /DSOMCBNOLOCALINCLUDES -IWAS_HOME\include servant_C.cpp 

    where

    servant
    is the name of the server implementation object (servant) that the client accesses.

  3. At a command line, type the following command:
    link client.obj servant_C.obj /OUT:client.exe wasororm.lib wasosa1m.lib 

What to do next

For more examples of building CORBA C++ client code (on several platforms) for WebSphere Application Server, see the Samples Gallery.


Related tasks
Developing a CORBA C++ client



Searchable topic ID:   tcor_pgmc2
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/tasks/tcor_pgmc2.html

Library | Support | Terms of Use | Feedback