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

3.5 Building and Compiling

To build the generated classes, you may either add them to your own project or makefile, or use the project files or makefiles generated by HydraExpress.

This chapter presents the basic command line procedure for building and compiling the example, and the alternative procedure for Windows platforms based on using MSVC.

For a detailed discussion on building and compiling your HydraExpress applications, see Chapter 22, "Options for Compiling," in the HydraExpress Web Service Development Guide.

3.5.1 Command Line Procedure


On UNIX/Linux, you must set your RWSF_HOME environment variable before using the makefiles. On Windows, be sure you have set up your environment properly and set up your command window with the MSVC environment. See Chapter 2, "Setup," in the Introduction to HydraExpress.
  1. To build the generated classes only, go to the directory containing the generated output:

  2. Invoke the following command:

    Win32

    nmake

    UNIX/Linux

    make

    This command builds a release mode shared library that contains the generated classes.

  3. To build the libraries and the sample application together, issue the nmake or make command and specify the sample po_main application target:

    Win32

    nmake po_main.exe

    UNIX/Linux

    make po_main

Change to the directory basicExample\bin, and run the po_main application at the command prompt, as shown here:

3.5.2 MSVC Procedure


You must set the RWSF_HOME environment variable in your system variables before starting MSVC.
  1. Double-click on the MSVC 6 workspace file, basicExample.dsw, or the MSVC 7 solution file, basicExample.sln.

  2. You have a choice of building only the generated classes, or of building the classes and compiling the example:

To run the example from within MSVC, first make sure that the sample executable po_main is the active project, then:



Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.