Mail Archives: cygwin/2006/03/02/10:08:41
On Mar 2 14:49, Dave Korn wrote:
> On 02 March 2006 14:34, Corinna Vinschen wrote:
> > Well, I did this:
> >
> > $ nm libcygwin.a | grep isnan
> > 00000000 T ___isnand
> > 00000000 I __imp____isnand
> > 00000000 T ___isnanf
> > 00000000 I __imp____isnanf
> > 00000000 I __imp___isnan
> > 00000000 T __isnan
> > 00000000 I __imp___isnanf
> > 00000000 T __isnanf
> > 00000000 I __imp__isnan
> > 00000000 T _isnan
> > 00000000 I __imp__isnanf
> > 00000000 T _isnanf
> > $ nm libm.a | grep isnan
> > 00000000 T ___isnand
> > 00000000 I __imp____isnand
> > 00000000 T ___isnanf
> > 00000000 I __imp____isnanf
> > 00000000 I __imp__isnan
> > 00000000 T _isnan
> > 00000000 I __imp__isnanf
> > 00000000 T _isnanf
> >
> > I don't see what would be wrong here.
>
> It's not in libc.a, does that make a difference?
No. Libc.a is only used if an explicit -lc is on the link line.
The standard library linked against when running gcc is libcygwin.a.
However, as another datapoint, I just unpacked cygwin-inst-20060301.tar.bz2
into a directory and tried to build a testapplication(TM):
$ tar xjf cygwin-inst-20060301.tar.bz2
$ cat > x.c <<EOF
#include <math.h>
int
main ()
{
double f = 3.14;
return isnan (f);
}
EOF
$ gcc -I./usr/include -L./usr/lib -o x x.c
$ ./x
$
So, that works. Jerry, you have -a -L//usr/local/lib when linking
miniperl. Could you have older Cygwin libs in /usr/local/lib?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -