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

Last updated on AUGUST 03, 2016

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

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