Orbix compilation of demos in chapter 4 of the principle and application of CORBA

Source: Internet
Author: User

After installing orbix6.3, You can compile demos in the installation package.

The compilation procedure is as follows:

1. You need to install the C ++ development environment. The local installation is vs. NET 2003.

2. Open the command window and run nmake.exe to compile the program. In D: \ Program Files \ Microsoft Visual Studio. NET 2003 \ vc7 \ bin, add the directory to the environment variable path,
Run the script for setting environment variables provided by vs. net, as shown in:
D: \ Program Files \ Microsoft Visual Studio. NET 2003 \ common7 \ tools \ vsvars32.bat

Or run Visual Studio. NET 2003 command prompt (in Microsoft Visual Studio. NET 2003 \ Visual Studio. NET tools under the Start Menu)

Explanation:
F: \ Program Files \ progress \ orbix \ ASP \ 6.3 \ demos \ CORBA \ orb \ simple \ cxx_server directory contains the MAKEFILE file,
This file has the following references:

###################################################################################        Copyright (c) 1993-2011 Progress Software Corporation and/or#                         its affiliates or subsidiaries.#                             All Rights Reserved.##################################################################################CXXLOCAL_DEFINES=!include ../../../../demo.mk!include ../../../../cxx_demo.mk

Cxx_demo.mk contains the header file path required for C ++ development.

PROC_INCLUDES=                  include="%MSVCDIR%\include" include="%MSVCDIR%\PlatformSDK\include" include=$(ART_CXX_INCLUDE_DIR)

Before using nmake, you must set vs. NET environment variables.

Note:
Script vsvars32.bat is one-time for setting environment variables, only valid for the current window.

After setting, you can start compiling without modifying makefile. The effect is as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.