beautypg.com

HP Integrity NonStop J-Series User Manual

Page 26

background image

3.

In the Import wizard, expand the general folder and select File System.

4.

Select Next > to continue to the File system wizard.

5.

Enter in the File system wizard From directory: field:

C:\Examples\GeneralCppSources

6.

A folder for GeneralCppSources will appear in the left-hand list box. Expand the folder but
do not select its check box.

7.

Under GeneralCppSources, select the check boxes for the include and source directories.

8.

Select Finish.

The include and source directories now appear under the GeneralCpp project folder.

For information about how to build, deploy, and launch GeneralCpp, first see

“Viewing and

changing properties of managed projects” (page 34)

because the build will fail if the location of

the headers directory is not specified to the cross compiler. Then see

“Building, deploying, and

launching a project” (page 36)

.

Creating multiple projects to build a single application

Using multiple projects to build an application can provide more flexibility in building applications.
For example, multi-language applications can group differing language files in different projects.

This section provides an example of creating a multi-project application, where one project named
CarParts

creates a linkfile and the other project, named Car, links the linkfile into the main

application.

To create the CarParts project from the NonStop Development perspective:

1.

Open the NonStop C++ Project wizard using one of the following methods:

Select File

→New→C++ Project

Select C++ Project from the pull-down menu of the New NonStop Project icon

in the

main tool bar.

Select New

→C++ Project from the context menu of the NonStop Project Explorer view.

2.

In the resulting NonStop C++ Project wizard:
a.

Enter CarParts in the Project name: field.

b.

Deselect the Use default location check box. Enter: C:\Examples\
MultiProjectCarApp\CarParts

c.

Select Empty Project in the NonStop Linkfile folder.

d.

Under Toolchains: select C-C++ TNS-E Tools.

3.

Select Next > to open the Initial Build Settings dialog.

4.

In the Initial Build Settings dialog, do not change the defaults. To prepend the corresponding
bin

to PATH before builds, specify either a Cygwin or Msys bin using the Cygwin/Msys bin:

combo box.

5.

Selecting Next > opens the Remote Settings dialog. Because deploying a linkfile is not
necessary, opening this dialog is not necessary. However, for shared library projects remote
system information is entered on this page.

6.

Select Finish.

To create the Car project from the NonStop Development perspective:

1.

Open the NonStop C++ Project wizard using one of the following methods:

Select File

→New→C++ Project

Select C++ Project from the pull-down menu of the New NonStop Project icon

in the

main tool bar.

Select New

→C++ Project from the context menu of the NonStop Project Explorer view.

2.

In the resulting NonStop C++ Project wizard:

26

Getting started

This manual is related to the following products: