[Numpy-discussion] RE: Python 2.2 seriously crippled for numerical computation?

Huaiyu Zhu huaiyu at gauss.almadan.ibm.com
Mon Mar 4 18:06:49 EST 2002


I wrote: 
>
>Produces
>1e+200   inf 34 Numerical result out of range 34
>1e-200     0 34 Numerical result out of range 34

Ah! Now I understand what Tim and others are talking about.  If I link the C
program with -lieee, I get

1e+200   inf 0 Success 34
1e-200     0 0 Success 34

So my question now is:  What do I do to tell Python to compile with -lieee?

In the source tree there are several places that mention this, but none of
which looks like meant for hand editing.   The lines in ./pyconfig.h

/* Define if you have the ieee library (-lieee).  */
/* #undef HAVE_LIBIEEE */

looks like it.  But since it's already commented out, does that mean
HAVE_LIBIEEE is already defined? 

Huaiyu




More information about the Python-list mailing list