Show: Object Pascal C++
Display Preferences

C++ Compiler Directories and Conditionals

From Appmethod Topics
Jump to: navigation, search

Go Up to C++ Compiler


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 support
 bcc32   bcc32c     bcc64     bccosx   bcciosarm   bcciosarm64   bccaarm 

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.

YesC++11Feature.png
YesC++11Feature.png

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.

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

YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png

Framework root directories

List of directories to add to the framework include path.

YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png

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.

YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png

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:

YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png

System include search path

Add specified directory to the C system include search path.

YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png

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.

YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png

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.

YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png

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"

YesC++11Feature.png
YesC++11Feature.png
YesC++11Feature.png

See Also

Personal tools
In other languages