This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Library man pages don't mention "-D_GNU_SOURCE" (newlib)
- From: Keith Thompson <Keith dot S dot Thompson at gmail dot com>
- To: cygwin at cygwin dot com
- Cc: Keith Thompson <Keith dot S dot Thompson at gmail dot com>
- Date: Sat, 8 Feb 2020 14:33:47 -0800
- Subject: Library man pages don't mention "-D_GNU_SOURCE" (newlib)
The exp10 function is a GNU extension, as the man page acknowledges.
The exp10(3) man page (available if you install the "cygwin-doc"
package) doesn't mention that you need to compile with "-D_GNU_SOURCE"
to use it. It seems to be inordinately difficult to find this
information.
The corresponding GNU man page, for example exp10(3) on Ubuntu, says:
SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <math.h>
I suggest adding similar wording to the Cygwin/newlib man pages for
functions that require it.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple