This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 'Missing isnand' still not fixed in 2006-03-01 snapshot


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]