public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Library man pages don't mention "-D_GNU_SOURCE" (newlib)
@ 2020-02-08 22:34 Keith Thompson
  0 siblings, 0 replies; only message in thread
From: Keith Thompson @ 2020-02-08 22:34 UTC (permalink / raw)
  To: cygwin; +Cc: Keith Thompson

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-08 22:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-08 22:34 Library man pages don't mention "-D_GNU_SOURCE" (newlib) Keith Thompson

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).