C++ Compiler Directories and Conditionals

From RAD Studio
Jump to: navigation, search

Go Up to C++ Compiler


Project > Options > Building > C++ Compiler > Directories and Conditionals

Use this dialog box to set C++ compiler directories and conditionals options.

Options Description

Target, Apply, Save

See Target Options.

Common items

See Common Items on Project Options Pages.


Directories and Conditionals Options Description Compiler switches
 bcc32   bcc32c     bcc64     bcciosarm64   bccaarm 

Add the Project Dir to Include the path

For convenience, adds the project directory to the #include path of the unit.cpp file.

For example:

#include "MyProjectDir.h"

Default = False

For more information, see #include.

Platform not supported

-iquote

-iquote

Platform not supported

Platform not supported

Conditional defines

Defines a list of macros.

A macro may be:

  • An identifier, such as MYVAR. In this case, the identifier is defined and assigned a null string as value.
  • An identifier and a value joined by an equal sign (=), such as MYSTRING="String content". In this case, the identifier is defined and assigned the value.

You may use in your code the macros that you define in this option.

To specify conditional defines on the command line, use -Dname or -Dname=string. When you assign name a string, the string cannot contain spaces or tabs. You can also define multiple #define options on the command line using either of the following methods:

  • Include multiple definitions after a single -D option by separating each define with a semicolon (;) and assigning values with an equal sign (=). For example:
    BCC32.EXE -Dxxx;yyy=1;zzz=NO MYFILE.C
  • Include multiple -D options, separating each with a space. For example:
    BCC32.EXE -Dxxx -Dyyy=1 -Dzzz=NO MYFILE.C

See the description of the Ellipsis pop-up button in Common Items on Project Options Pages

-D

-D

-D

-D

-D

Framework root directories

List of directories to add to the framework include path.

Platform not supported

Platform not supported

Platform not supported

-F

Platform not supported

Include file search path

Specifies the drive and/or directories that contain program include files. Standard include files are those you specify in angle brackets (<>) in an #include statement (for example, #include <myfile>). For more information, see:

The Ellipsis pop-up button is described in Common Items on Project Options Pages.

-I

-I

-I

-I

-I

Object file output directory

Sets output directory to specified path. See the description of the Ellipsis pop-up button in Common Items on Project Options Pages.

This option determines the output folder of the following files:

-n

-n

-n

-n

-n

System include search path

Add specified directory to the C system include search path.

-I

-isystem

-isystem

-isystem

-isystem

System include search path; absolute paths are relative to -isysroot

Add specified directory to the C system include search path. Absolute paths are read as relative to the SDK path.

Platform not supported

Platform not supported

Platform not supported

-iwithsysroot

-iwithsysroot

Undefine any previous definitions of name

Removes the previous definition of the identifier name. See the description of the Ellipsis pop-up button in Common Items on Project Options Pages.

-U

-U

-U

-U

-U

Windows header file version defines

Identifies the conditional defines targeting the highest version of Windows API header files to use. Choose an OS version from the drop down list. See http://msdn2.microsoft.com/en-us/library/aa383745.aspx for more information.

The possible values include (but are not necessarily limited to) the following:

  • Windows 7
  • Windows Server 2008
  • Windows Vista with Service Pack 1
  • Windows Vista
  • Windows Server 2003 with Service Pack 1 or Service Pack 2
  • Windows Server 2003
  • Windows XP
  • Windows XP with Service Pack 1
  • Windows XP with Service Pack 2
  • Windows 2000 Service Pack 4

Default = "Not specified"

Note: Windows Vista or earlier is not supported.

Platform not supported

Platform not supported

See Also