Options Window: C/C++

See Also 

You can access this panel by choosing Tools > Options and clicking the C/C++ category.

The C/C++ panel of the Options window lets you configure build tools, project settings, code assistance settings, highlighting settings, and accepted file extensions for your C and C++ projects. These options are used as default values for new C and C++ projects. Some of these settings can be overridden on individual projects by setting project properties.

Build Tools tab

Build Host. The list includes your local host and any remote hosts you have defined. You can add and remove remote build hosts, change the default host, and specify how to share project sources on the local host with the remote host. For information on using remote hosts, see Remote Development.

Tool Collection. The tool collection list displays the collections found on the currently selected build host. The default collection for that selected host is listed in bold type. You can modify the tool collection list by adding or removing collections. Be sure to select the Build Host before you modify any information about the tool collection.

Base Directory. The base directory for compilers for the current build host. The path can be edited for the local host or remote hosts, but browsing to select a different path only works on the local host.

C Compiler. The C compiler command to use for building projects. The default compiler is the first one found in the base directory. You can type a different path to a compiler, or click the browse button to navigate to a different compiler on the local host.

C++ Compiler. The C++ compiler command to use for building projects. The default compiler is the first one found in the base directory. You can type a different path to a compiler, or click the browse button to navigate to a different compiler on the local host.

Fortran Compiler. The Fortran compiler command to use for building projects. The default compiler is the first one found in the base directory. You can type a different path to a compiler, or click the browse button to navigate to a different compiler on the local host.

Assembler. The assembler utility to use to translate assembly language projects into machine code. The default assembler, if any, is the first one found in the base directory. You can type a different path to an assembler, or click the browse button to navigate to a different assembler on the local host.

Make Command. The make command to use for building projects. The default command is the first one found in the base directory. You can type a different path to a make command, or click the browse button and navigate to a different command on the local host.

Debugger Command. The gdb command to use when debugging projects. The default command is the first one found in the base directory. You can type a different path to a gdb command, or click the browse button and navigate to a different command on the local host.

QMake Command. The path to the qmake command, which is used to generate makefiles for Qt projects. You can type the path to a qmake command, or click the browse button and navigate to a different command on the local host.

CMake Command. The path to the cmake command to use for projects with existing sources that use the CMake cross compiler. You can type a path to the cmake command, or click the browse button and navigate to a different command on the local host.

The Versions... button displays the version numbers of each tool in the selected Tool Collection.

The Restore Defaults button can be used to make the IDE search your environment for tool collections and update the paths to all the tools. If you have manually added a tool collection, the paths will not be changed.

Project Options Tab

Code Assistance Tab

Select the appropriate tool collection and compiler tab. Modify the settings for include files and macro definitions that are used by the built-in parser. For tool collections on remote build hosts, the include files are located in your .netbeans directory

Debugging Options Tab

For information on setting global debugging options for C/C++ projects, see Setting Global Debugging Options.

Other Tab

Language File Extensions: You can edit the lists of accepted file extensions for C, C++, Fortran, and Assembler source files, and C and C++ header files.

 

See Also
 

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.