Show: Delphi C++
Display Preferences

C++ Compiler Directories and Conditionals

From RAD Studio XE3
Jump to: navigation, search

Go Up to C++ Compiler Project Options

Project > Options > 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     bcc64     bccosx 

Add the Project Dir to Include 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

Platform not supported

Conditional defines

Defines the specified identifier name to the null string. -Dname=string defines name to string. In this assignment, 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

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

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.

-n

N/A

-n

System include search path

Add specified directory to the C system include search path.

Platform not supported

-isystem

Platform not supported

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

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"

N/A

N/A

Platform not supported

See Also

Personal tools
Previous Versions
In other languages