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: