Creating a new C or C++ project

To create a new C or C++ Project:

  1. Select File → New → Project... from the main menu.

  2. Expand the C/C++ group.

  3. Select either C Project or C++ Project.

  4. Click on Next.

  5. Enter a project name.

  6. Leave the Use default location option selected so that the project is created in the default folder shown. Alternatively, deselect this option and browse to your preferred project folder.

  7. Select the type of project that you want to create.

    Figure 23. Creating a new C project

    Creating a new C project

  8. Click on Finish to create your new project.

    The project is visible in the Project Explorer view.


C project

This does not select a source language by default and leaves this decision up to the compiler. Both gcc and ARM® Compiler default to C for .c files and C++ for .cpp files.

C++ project

Selects C++ as the source language by default, regardless of file extension.

In both cases, the source language for the entire project, a source directory or individual source file can be configured in the build configuration settings.

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0480L