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.
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:
The problem may show up with either -D_GNU_SOURCE or -D_ISOC99_SOURCE
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