U

Undefines any definition currently in effect for the specified macro.

IDE Equivalent

Windows: Preprocessor > Undefine Preprocessor Definitions

Linux: Preprocessor > Undefine Preprocessor Definitions

Mac OS X: Preprocessor > Undefine Preprocessor Definitions

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-Uname

Windows:

/Uname

Arguments

name

Is the name of the macro to be undefined.

Default

OFF

Macro definitions are in effect until they are undefined.

Description

This option undefines any definition currently in effect for the specified macro. It is equivalent to an #undef preprocessing directive.

On Windows systems, use the /u option to undefine all previously defined preprocessor values.

Alternate Options

None

Example

To undefine a macro, enter the following command:

On Windows* systems:

icl -Uia32 prog1.cpp

On Linux* and Mac OS* X systems:

icpc -Uia32 prog1.cpp

If you attempt to undefine an ANSI C macro, the compiler will emit an error:

invalid macro undefinition: <name of macro>

See Also


Submit feedback on this help topic

Copyright © 1996-2011, Intel Corporation. All rights reserved.