Setting Properties

The Intel® C++ Compiler integration with Eclipse*/CDT* lets you specify compiler, linker, and  archiver options at the project and source file level.

Setting Options for Your Project

Follow these steps to set options for your project:

  1. Select your project in the C/C++ Projects view.
  2. From the Eclipse toolbar, select Project > Properties > C/C++ Build.
  3. Under Tool Settings, click an option category for C Compiler or Linker.

  1. Set the option(s) you want to add to your project compilations, then open other categories if necessary.
  2. Click OK to complete your selections.

To reset properties to their default setting, click Restore Defaults. The Restore Defaults button appears on each property page, but the Restore Defaults action applies to ALL property pages.

Setting Options for Source Files

In addition to setting compiler options for your entire project, you can also specify options for any source file in your project.

  1. Select a source file in your project.
  2. Right-click on the source file, and select Properties from the context menu.
  3. Select C/C++ Build to display the Tool Settings for changing compiler options.
  4. Change options as described above.
  5. On the C/C++ Build dialog, you may chose Exclude from build if you do not want the source file included in the build.

Specifying Properties

Some properties use check boxes, drop-down lists, or other input mechanisms to specify a compiler option.

 

 

Several options let you specify arguments. Click New to add an argument to the list. Enter a valid argument for the option, then click OK.

 

 

If you want to specify an option that is not available from the Properties dialog, use the Command Line category. Enter the command line options in the Additional Options text box just as you would enter them on the command line.

 

 

See Also