# Excluding Source Files from a Build

The following topic applies to Eclipse* for C/C++.

To exclude a source file from a build:

1. Right-click a file or folder in the Project Explorer.
2. Select Resource Configurations > Exclude from build.
   The Exclude from build dialog box opens.
3. Select one or more build configurations to exclude the file or folder from.
4. Click OK.

The compiler excludes that file or folder when it builds using the selected project configuration.

Parent topic: Creating a Simple Project