| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <001101c03cf1$cdfc1ad0$080264c0@bern> |
| From: | "Charles Werner" <cw AT gamma-rs DOT ch> |
| To: | <cygwin AT sourceware DOT cygnus DOT com> |
| Subject: | Possible bug: gamma function missing global variable in libm |
| Date: | Mon, 23 Oct 2000 15:04:33 +0200 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 5.50.4133.2400 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
I have been attempting to use the gamma functions
in libm. The following program does not compile:
/*** test1.c ****/
#include <stdlib.h>
#include <math.h>
int main(void)
{
signgam = 0;
exit(0);
}
gcc test1.c -lm
$ gcc test1.c -lm
/c/TEMP/ccQLwcGF.o(.text+0xd):test1.c: undefined reference to `signgam'
collect2: ld returned 1 exit status
Signgam is a global variable required for
the gamma functions. In the cygwin math.h:
$ grep signgam math.h
math.h:/* The gamma functions use a global variable, signgam. */
math.h:extern int signgam;
It must be missing from libm.
This program compiles without difficulty with gcc under Solaris.
Thanks,
Charles
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |