public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Keith Thompson <Keith.S.Thompson@gmail.com>
To: cygwin@cygwin.com
Cc: Keith Thompson <Keith.S.Thompson@gmail.com>
Subject: Library man pages don't mention "-D_GNU_SOURCE" (newlib)
Date: Sat, 08 Feb 2020 22:34:00 -0000	[thread overview]
Message-ID: <CAAHpriNDNogQw7VR1CSJLqf57q6w0P+8rNV_8Tn7X27i2YTsSA@mail.gmail.com> (raw)

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

                 reply	other threads:[~2020-02-08 22:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAHpriNDNogQw7VR1CSJLqf57q6w0P+8rNV_8Tn7X27i2YTsSA@mail.gmail.com \
    --to=keith.s.thompson@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).