X

Removes standard directories from the include file search path.

IDE Equivalent

Windows: C/C++ > Preprocessor > Ignore Standard Include Path

Linux: Preprocessor > Ignore Standard Include Path

Mac OS: Preprocessor > Ignore Standard Include Path

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS: -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.

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.

Alternate Options

Linux and Mac OS: -nostdinc
Windows: None

See Also

I compiler option