In this chapter:
Wizards guide you through a sequenced set of tasks. In the IDE, these tasks may be creating something new (e.g. a project) or converting one thing to another (e.g. converting to a Standard C project). Most often, you use wizards to create new projects and folders.
Wizards aren't directly connected to any perspective, though you're more likely to call them from some perspectives than from others (most likely from the C/C++ Development perspective).
You can access all the wizards from the main menu by selecting File-->New. The File-->New-->Project selection filters out all the wizards except projects; File-->New-->Other doesn't filter anything. (The exception to this is Target System Project, which, while labeled as a project, isn't a project as far as the IDE is concerned.)
In the New Project dialog, the wizards are further sorted: selecting C in the left pane displays all the projects with a C nature in the IDE; selecting QNX in the left pane shows all the projects with a QNX nature:
Notice the overlap: the QNX C Application Project wizard appears in the right pane for both C and QNX.
So-called "simple" wizards show the very basic elements of projects: Project, Folder, and File. These elements have no natures associated with them. You can access the wizards for these by selecting File-->New-->Other, then selecting Simple from the left pane.
![]() |
Although projects may appear as directories in your workspace, the IDE attaches special meaning to them. The IDE won't automatically recognize a directory you create in your workspace directory as a project. The IDE automatically recognizes directories and new files of any type if you create them outside of the IDE (i.e. using Windows Explorer) and place them in a project directory. To have the IDE recognize them, in the Navigator view, right-click the navigator pane and select Refresh. |
The New Project wizard helps you create a C or C++ project.
This section includes:
The IDE lets you create a variety of projects, each with certain properties. Most of these projects are also subdivided into C or C++ projects:
To create a C/C++ project :
If you want to build: | Select: |
---|---|
Standard Make C Application Project | C |
QNX C Application Project | C or QNX |
QNX C Library Project | C or QNX |
Standard Make C++ Application Project | C++ |
QNX C++ Application Project | C++ or QNX |
QNX C++ Library Project | C++ or QNX |
![]() |
In the C/C++ Development perspective, you can also access the QNX C/C++ Projects with the
![]() ![]() ![]() ![]() |
Depending on the type of project you choose, the New Project wizard displays different tabs:
Project Type | Architecture tab, Options tab |
Projects tab, Build Settings tab |
Library tab |
---|---|---|---|
Standard Make C Project or Standard Make C++ Project |
Yes | No | No |
QNX C Application Project or QNX C++ Application Project |
Yes | Yes | No |
QNX C Library Project or QNX C++ Library Project |
Yes | Yes | Yes |
![]() |
You can find the default settings for the New Project wizard by selecting Window-->Preferences from the main menu. From the left pane, select C/C++, then New QNX Projects. |
The Architecture tab lets you choose the platforms to compile executables for:
For example, to build for a PowerPC platform, enable PPC (Big Endian).
If you've already created a QNX Target System Project, you'll also see entries such as Doug [localhost - x 86]. These let you build specifically for a configured target. If you also enable X86 (Little Endian), the IDE builds only one executable, not two.
You must choose at least one platform.
The Projects tab lets you configure your preferred order of building:
For example, if you associate myProject with mySubProject, the IDE builds mySubProject first during rebuilds. If you change mySubProject, the IDE doesn't automatically rebuild myProject.
The Build Settings tab lets you configure how the IDE handles make errors and what command to use to build your project:
The Options tab lets you choose what type of executables the IDE builds:
You must select at least one build type.
The Library tab lets you choose the type of library you wish to build (e.g. Static library, Shared library):
You must choose one of the options.
You must create a Target System Project for every target you have. When you create a launch configuration, you have the option of adding a new target from within the Launch Configurations dialog. When you do, the IDE opens up the New Target System Project wizard.
To create a new target:
![]() |
You can also reach the New Target System Project wizard by right-clicking in the Target Options pane and selecting Add target. |
At various times, you may want to convert projects to give them a QNX nature. For example:
The QNX nature causes the IDE to use QNX make tools and the QNX make structure when building them.
The IDE lets you convert many projects in the same step, but the projects are all converted into projects of the same type.
![]() |
If you wish to convert a QNX Project back into a Standard Make C/C++ Project, you can use the Convert C/C++ Projects wizard. From the main menu, select File-->New-->Project. In the left pane, select C. In the right pane, select Convert to a C or C++ Project. |
To convert to a QNX Project:
The fields let you to convert a selection of projects to one of the following types of projects: