Tutorial 2: Creating a QNX C/C++ project

Unlike C/C++ projects, a QNX C/C++ project relies on the QNX recursive Makefile system to support multiple CPU targets. (For more information about the QNX recursive Makefile system, see the Conventions for Recursive Makefiles and Directories chapter in the Neutrino Programmer's Guide.)
Follow these steps to create a simple QNX C (or C++) hello world project:
  1. In the C/C++ Development perspective, select File > New > Project… from the main menu of the workbench.
  2. Expand the C (or C++) folder, and select QNX C Project (or QNX C++ Project), then click Next. The New Project wizard appears.
  3. Name your project, then select the type (e.g. Application).
    Note: Even though the wizard allows it, don't use any of the following characters in your project name (they'll cause problems later): | ! $ ( " ) & ` : ; \ ' * ? [ ] # ~ = % < > { }

    New QNX C Project: Project name and type

  4. Click Next.
  5. On the Build Variants tab, expand the build variant that matches your target type, such as X86 (Little Endian), PPC (Big Endian), etc., and then select the appropriate build version (release or debug). New QNX C Project: Build Variants tab
  6. Click Finish. The IDE creates your QNX project and shows the source file in the editor.

    New QNX C Project: Build Variants tab

Congratulations! You've just created your first QNX project.

For instructions about building your program, see the section Building projects in the Developing C/C++ Programs chapter.

Note: In order to run your program, you must first set up a Neutrino target system. For details, see: the Preparing Your Target chapter the section Running binaries for a project in the Developing C/C++ Programs chapter.
Related concepts
Before you start
Tutorial 4: Importing a QNX BSP into the IDE
Related tasks
Tutorial 1: Creating a C/C++ project
Tutorial 3: Importing an existing project into the IDE