Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Installing and Building Your SourcePro C++ Products
Rogue Wave web site:  Home Page  |  Main Documentation Page

A.5 Building the DB XA Module

To build the DB XA Module:

  1. Follow the instructions in Section 2.5 for creating a buildspec for SourcePro DB, with the following information.

  2. In the component selection screen, select the DB Interface Module and the access module for your database. The DB XA Module does not appear in the component selection screen.

  3. Click the Options button to open the RCB Options screen.

  4. Check the Show advanced questions box.

  5. Click OK to return to the main RCB window, and proceed with generating a buildspec as usual.

  6. In the screen to enter compiler options (shown in Section 3.5.12), enter the following compiler commands into the Start of compile commands field:

  7. Finish creating the buildspec by following the instructions in Section 2.5.

  8. Run the buildspec as explained in Section 2.6.

  9. Some combinations of platforms and access modules require an additional database library to be linked to allow access to the database XA APIs. Table 6 lists these combinations and the libraries they require.

Table 7: Additional libraries required by some platforms and access modules

Platform Access Module Additional Library
UNIX Sybase libxadtm.a or libxadtm.so or
libxadtm.sl
Windows Sybase libxadtm.lib
Windows Oracle OCI oraxa9.lib, oraxa10.lib, or
oraxa11.lib
Windows DB2 CLI db2api.lib
  1. In case of a dynamic build, if an additional library is required, the access module build will likely fail. If the build does not fail, then the examples will fail at runtime. In either case, do the following:

  2. a.

    Open the makefile of the access module located in buildspace/source/access-module/build-type.

    b.

    Include the additional library on the link line.

    c.

    Link the access module again.

  3. In case of a static build, if an additional library is required, the examples will not build. Do the following:

  4. a.

    Open the makefile of the examples located in buildspace/examples/access-module/build-type.

    b.

    Include the additional library on the link line of each example.

    c.

    Link all the examples again.

At this point you have installed and built the DB XA Module of SourcePro DB.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.