Configuring C and C++ Build Tools
See Also
You can use the Options window to configure default build tools for your
C and C++ projects.
To configure C and C++ build tools:
- Choose Tools > Options.
-
Click C/C++ in the top pane of the window.
- Click the Build Tools tab.
-
Modify the properties as desired.
You can set the following properties:
- Tool Collection. The tool collection list displays
the collections found in your environment the first time you started
the IDE, plus any collections you have added. The default
collection is listed in bold type. This collection is selected by
default for any new project you create. You can change the
default tool collection for a specific project in the project properties.
- To add a collection to the list, click Add and specify the
base directory in the Add New Tool Set dialog box. The Tool Set
Family and Tool Set Name are filled in automatically. You can specify
a different name for the collection. If you change the family,
make sure that the family you specify is the correct family for the
collection or the compiler flags might not be valid.
- To remove a collection from the list, select the collection and
click Remove.
- To duplicate a collection, select the collection from the list
and modify the base directory, tool set family, or tool set name in
the dialog box.
- To make a collection the default, select the collection and
click Default.
- Base Directory. The base directory for compilers.
- C Compiler. The C compiler to use for building projects.
The default compiler is the first one found in the base directory. You can select a compiler from the drop-down list, or select
Add from the list to add another compiler from the same directory.
- C++ Compiler. The C++ compiler to use for building projects.
The default compiler is the first one found in the selected compiler
collection. You can select a compiler from the drop-down list, or select
Add from the list to add another compiler from the same directory.
- Make Command. The make command to use for building
projects. The default command is the first one found in the
base directory. To select a different command from the base directory
or another directory, click the browse button and navigate to a different
command in the Select Tool dialog box.
- Debugger Command. The gdb command to use when debugging
projects. The default command is the first one found in the
base directory. To select a different command from the base directory
or another directory, click the browse button and navigate to a different
command in the Select Tool dialog box.
To display the versions of all of the selected tools, click
Versions.
To restore all of the tool selections to the defaults, click Restore
Defaults.
To set the build tools properties for a specific project, right-click
the project and choose Properties.
Legal Notices