My Oracle Support Banner

Compiling With -D_GNU_SOURCE Restricts Usage Of Math Functions (Doc ID 2090964.1)

Last updated on MARCH 01, 2019

Applies to:

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

Symptoms

Oracle Solaris Studio 12.3/C++ 5.12 or Oracle Solaris Studio 12.4/C++ 5.13 on Linux

When C99 mathematical functions are used in combination with -D_GNU_SOURCE, this fails as follows:




Changes

The problem may show up with either -D_GNU_SOURCE or -D_ISOC99_SOURCE

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.