The C++ Compiler Issues Error Compiling Headers When Using Symbols Beginning With an Underscore (Doc ID 1492968.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Solaris Studio - Version Sun Studio 11 to 12.4 [Release 11.0 to 12]
Information in this document applies to any platform.

Symptoms

Code that uses preprocessor macros that define certain symbols beginning with an underscore fails to compile.

 

Example:

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms