This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: lgamma function not available with -mno-cygwin
- From: Charles Wilson <cwilson at ece dot gatech dot edu>
- To: "William D. Kirby" <wdkirby at ix dot netcom dot com>
- Cc: Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Sun, 27 Jan 2002 19:30:06 -0500
- Subject: Re: lgamma function not available with -mno-cygwin
- References: <3C548B30.F9D6FDCF@ix.netcom.com>
WIN32 != cygwin
If you want cygwin-provided functions, build a cygwin version (i.e.
without -mno-cygwin). Otherwise, if the functions are not available
from MS libraries (which is what you are using when you build with
-mno-cygwin) you need to either (a) write replacements yourself, or (b)
complain to Bill G.
Further discussion of a non-cygwin build of GNUPLOT belongs elsewhere.
perhaps the mingw list?
William D. Kirby wrote:
> I'm working with the beta cvs version of GNUPLOT. The X11 version
> compiles and tests fine using CYGWIN v1.3.9-1 build, but I get an error
> message testing the WIN32 version (i.e., -mno-cygwin). The gnuplot
> generated error message during testing says that libc does not contain
> the lgamma function.
>
> I would assume that the WIN32 and X11 versions would have equally
> capable libc libraries.
You assume much: that the authors of Microsoft's runtime library,
msvcrt.dll, have ANY interest in cross-platform compatibility with
standard libc.
> I attempted to use the math lib -lm, but got a
> run time error that it could not find cygwin1.dll.
Right -- libm is a cygwin library, so it'll need cygwin1.dll. But, by
using -mno-cygwin, you're not USING cygwin1.dll for system services, you
are using msvcrt.dll.
> Is there a work around, and could the WIN32 build be missing lgamma for
> some reason?
See above.
--Chuck
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/