Creating New Projects from Templates

In this example we show how to create a new project using one of the built-in Carbide templates, how to build it into an executable, and how to launch the debugger to verify program accuracy. The steps to do this include:

  1. Creating a project from a project template
  2. Building the object code based on the project sources
  3. Defining a launch configuration for running or debugging the application
  4. Controlling and debugging the running program using the Carbide debugger

Everything starts with a project. So the first step is to use the New Project wizard to create a project based on a known template. Program templates are designed to make creating common project types fast and simple. They include the basic sources, resources, includes, and build files that Carbide uses to manage your project.

Creating projects from a template

  1. Click the File > New > Symbian OS C++ Project menu option.

    The New Symbian OS C++ Project window appears to guide you through project creation process.

    New Symbian OS C++ Project window

  2. Select a template from the available options, then click Next.

    Select the template for the type of project you want to create. For this example we chose the S60 > GUI Application template. Note that as you select a template a brief description appears below the list explaining it attributes.

  3. Use the New Symbian OS C++ Project page to define the project name and build system.

    1. Type a name into the Project name text box.

      The project name is used to define several of the pre-build source files in the prject.

    2. (Optional) Change the project location.

      Uncheck the Use default location option to specify a different location for the project.

    3. Select the Builder type.

      Based on the installed SDKs you can choose between SBSv2 (recommended) and the older SBSv1 build systems.

    4. Click Next.
  4. In the Symbian OS SDKs page, select the SDK and build configurations for the project.

    Here you can select from any SDK that is both installed and recognized by Carbide. If the SDK supports several build configurations (GCCE, RVCT, etc.) then you can pick and choose among them for your project.

  5. (Optional) Click Next to provide Basic Settings like author, copyright and other info for your project.
  6. (Optional) Click Next to rename the Project Directories used to organize the project.
  7. Click Finish.

    Carbide uses the selected project template and your settings to create a new project in the Project Explorer view.

NEXT STEP > Building an executable based on the project sources

Other references