Configuring Project Options for C/C++/Fortran Projects
See Also
You can use the Options window to configure some general project options for your
C, C++, and Fortran projects. These options affect all your C/C++/Fortan projects,
and are mostly related to makefiles and behavior related to building and running
your projects.
To configure general project options:
-
Choose Tools > Options.
-
Click C/C++ in the top pane of the window.
-
Click the Project Options tab.
-
Modify the properties as desired.
You can set the following properties:
-
Make Options. Global options for the make command.
-
File Path Mode. The mode for storing file paths in a project. Always Relative mode
stores paths as relative to project root. Always Absolute mode stores paths as absolute
paths. Auto mode stores paths as relative to project root if inside project, othervise as
absolute path.
-
Reuse Output Tabs from Finished Processes. If selected, writes make output to a
single Output window tab, deleting the output from the previous process. If not selected,
opens a new tab for each make process.
-
Enable dependency checking in generated makefiles. Add make state
statements to the makefile.
-
Show binary files in Projects view. If selected, the Projects view shows all files
in a directory tree, including binary objects. This option is most relevant to projects
created with existing sources, which might place sources and binaries in the same location.
Deselect this option to more easily see your C/C++ source files and header files.
-
Show warning dialog about missing makefiles due to mismatched platforms. If
selected, the IDE will warn you if you attempt to run a project that was created on a
platform that is not the same as your current build host's platform. If you use
project configurations to build on multiple platforms, you might want to disable the
missing makefiles warning.
-
Rebuild entire project if project properties have changed. If selected, the IDE
rebuilds the project if you change any project properties, even ones that should have no
effect on build products. By default, this is not selected because dependency checking
should ensure most required rebuilds. You might want to enable this option if you are using
GNU tools and changing compiler or linker options does not cause a rebuild.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.