[Enterprise Extensions only]
  Previous topic

Building a C++ CORBA client

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

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

  1. At a command line, type the following command:
    cl /nologo -c -GX /Z7 /c /nologo /MD /Od /X /DLL /Zi -DEXCL_IRTC
    -DSOMCBNOLOCALINCLUDES -D_MS_INC_DIR=msvc60_install\include
    -D_USE_NAMESPACE -DNO_STRICT -Imsvc60_install\include -Imsvc60_install\include
    -Iwasee_install\include client.cpp 

    Where

    msvc60_install
    is directory in which the Microsoft C++ 6.0 compiler is installed; for example, d:\msvc60\vc98.
    wasee_install
    is the directory into which WebSphere Application Server enterprise services is installed.
    client
    is the name of the C++ client main code file.

  2. At a command line, type the following command:
    cl /nologo -c -GX /Z7 /c /nologo /MD /Od /X /Zi -DEXCL_IRTC -DSOMCBNOLOCALINCLUDES
              -D_MS_INC_DIR=msvc60_install -D_USE_NAMESPACE_USE_NAMESPACE
              -DNO_STRICT -Imsvc60_install\include -Imsvc60_install\include
              -Iwasee_install\include -I. servant_C.cpp 

    Where

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

  3. At a command line, type the following command:
    link /nologo /DEBUG /OUT:client.exe /DEFAULTLIB:\WebSphere\AppServer\Enterprise\lib\somosa1m.lib \WebSphere\AppServer\Enterprise\lib\somororm.lib \WebSphere\AppServer\Enterprise\lib\somsrvsm.lib client.obj servant_C.obj

This task is one step of the parent task, Developing a CORBA client.

For more examples of building C++ CORBA client code (on several platforms) for WebSphere Application Server, see the samples article "Tutorial: Creating a user-defined C++ server and client" at WAS_HOME/Enterprise/samples/sampeex/sampcppsdk/wsBuildLogger.htm.

  Previous topic