Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress XML Binding Development Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

5.7 Building and Compiling

To build the generated classes, use the generated makefile.

To build the implemented application files discussed in this chapter, copy the provided files soap_main.cpp, trade_main.cpp, and soap.xml into the soapExample\app\data directory before compiling, allowing them to overwrite the generated files of the same name.


On UNIX/Linux, you must set your RWSF_HOME environment variable before using the makefiles. On Windows, be sure you have run the script rwsfvars.bat, and set up your command window with the MSVC environment.
  1. From the top-level code generation directory, invoke the following command:

    Win32/MSVC

    nmake

    UNIX/Linux

    make

    This builds the shared library for all of your generated classes.

  2. To build the libraries and the sample applications together, issue the make command and specify the sample soap and trade application targets:

    Win32/MSVC

    nmake soap_main.exe trade_main.exe

    UNIX/Linux

    make soap_main trade_main

The makefile builds any components created when the generator created the makefile, placing them into top-level bin and lib directories as follows:

Win32

/bin
.exe
 
/lib
.lib

UNIX/Linux

/bin
.exe, .dll
 
/lib
.so 

To run the example, first make sure that your environment is set up as described in Chapter 2, "Installation," in the HydraExpress User's Guide. Change to the directory soapExample\bin, and run the soap_main or trade_main application at the command prompt, as shown here:



Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.