export signgam

Charles Wilson cwilson@ece.gatech.edu
Thu Jul 26 13:01:00 GMT 2001


Charles Wilson wrote:

> It seems that some packages (especially plotutils) assume that if gamma, 
> lgamma, j0, and erf all exist, then signgam does too. This breaks on 
> cygwin, since signgam exists but is not exported.  However the 
> assumption is not unreasonable, so here's a patch to export the symbol.
> 

scratch that.  It seemed so "obviously correct" -- but it ain't. 
building new-cygwin1.dll fails with "Cannot export signgam: symbol not 
defined." Oops.

signgam is a global variable; math.h #defines it as
#define signgam (*__signgam())

More research required....  :-(


--chuck




More information about the Cygwin-developers mailing list