Setting C and C++ Compiler Options

See Also 

When you create a C or C++ Application or Library project, the IDE generates a master makefile and configuration-specific makefiles that control all aspects of project compilation. You can set the compiler options for your project or a file in the project using the Project Properties dialog box.

To set compiler options:

  1. Right-click the project node or file node and choose Properties.
  2. In the Project Properties dialog box, select the configuration for which you want to set compiler options.
  3. Expand the Build node.
  4. Select the compiler node and then modify the compiler properties.

All changes are immediately registered in the makefiles when you click OK. In most cases, the properties are translated to compiler flags in the makefiles.

See Also
  C/C++ Project Properties Dialog Box:
      Compiler (General)
Setting C and C++ Linker Options
Setting C and C++ Project Properties
Managing Project Configurations

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