C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiling and Linking TNS/E Native C and C++
Programs
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
17-2
Selecting a Development Platform
For information about compiling and binding native C++ programs using the Windows
PC environment, see the online help for the HP Enterprise Tool Kit—NonStop Edition
(ETK). In this guide, the Enterprise Tool Kit is introduced in Section 18, Using ETK and
Native C/C++ Cross Compiler on the PC.
The Guardian CPPINIT* and OSS or PC cppinit* files used to create, replace, or
delete C++ operators for TNS/R programs are not needed for TNS/E programs. For
TNS/E, the files LIBCTXT and libc.txt can be used for TNS/E linking. (This is similar to
how Guardian LIBCOBEY and OSS libc.obey files are used for TNS/R linking).
Selecting a Development Platform
A development platform consists of the hardware system and software environment
available to compile, link, and run a program.
You can develop OSS programs regardless of whether the OSS environment is
available on the system. However, you cannot run and test OSS programs on a system
without the OSS environment.
It is easier to develop a program in the environment in which it runs, but you can
develop a program in one environment that runs in another environment, with a few
restrictions. However, compile times are much faster in the PC environment.
Table 17-1 describes the capabilities of each development platform.
Table 17-1. Development Platform Capabilities
Capability
System With
Guardian
Environment
System With
Guardian and
OSS
Environments
ETK on
Windows PC
Use Guardian development tools for
Guardian programs?
Yes Yes No
Use Guardian development tools for
OSS programs?
Yes Yes No
Use OSS development tools for
Guardian programs?
No Yes No
Use OSS development tools for OSS
programs?
No Yes No
Run Guardian programs? Yes Yes No
Run OSS programs? No Yes No
Compile programs with embedded
SQL?
Yes Yes Yes
Use PC-based development tools for
Guardian and OSS programs?
No No Yes