Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

X

Removes standard directories from the include file search path.

Syntax

Linux:

-X

macOS:

-X

Windows:

/X

Arguments

None

Default

OFF

Standard directories are in the include file search path.

Description

This option removes standard directories from the include file search path. It prevents the compiler from searching the default path specified by the INCLUDE environment variable.

On Linux* and macOS systems, specifying -X (or -noinclude) prevents the compiler from searching in /usr/include for files specified in an INCLUDE statement.

You can use this option with the I option to prevent the compiler from searching the default path for include files and direct it to use an alternate path.

IDE Equivalent

Visual Studio: Preprocessor > Ignore Standard Include Path

Eclipse: Preprocessor > Ignore Standard Include Path

Xcode: Preprocessor > Ignore Standard Include Path

Alternate Options

Linux and macOS: -nostdinc

Windows: None

See Also