You can specify compiler, linker, and archiver options
at the project and source file level. Follow these steps to set options for a
project or file:
Right-click a project or source file in
the
Project Explorer.
Select
Properties. The property pages dialog box opens.
Select
C/C++ Build
> Settings.
Select the
Tool Settings
tab and click an option category for
Intel C Compiler,
Intel C++ Compiler, or
Intel C++ Linker for a C++ project, or select
Intel® oneAPI DPC++ Compiler or
Intel® oneAPI DPC++
Linker for a DPC+++ project.
Set the options to apply to the project or file.
Note
Some properties use check boxes, drop-down boxes, or dialog boxes
to specify compiler options. For a description on options properties, hover
over the option to display a tooltip. After setting the desired options in
command line syntax, select
Apply.
To specify an option that is not available
from the
Properties dialog, use
C/C++ Build Settings > Settings > <Compiler> > Command Line. The
Compiler entry has one of the following values:
Intel C++ Compiler or
Intel C Compiler
or
Intel® oneAPI DPC++ Compiler. Enter the command
line options in the
Additional Options field using command-line
syntax and select
Apply.
You can specify option settings for one or
more configurations by using the
Configuration drop-down menu.
Click
Apply and Close.
The compiler applies the selected options, using the selected
configurations, when building.
Tip
To restore default settings to
all properties for the selected configuration, click the
Restore Defaults button on any property page.