[Numpy-discussion] scalarmathmodule changes broke MSVC build; patch available

Ted Horst ted.horst at earthlink.net
Mon May 8 17:10:11 EDT 2006


Sorry about that.  I'm not sure why that compiled for me.  gcc 4  
seems to allow this.

Ted

On May 4, 2006, at 16:36, Albert Strasheim wrote:

> Hello all
>
> Some changes to scalarmathmodule.c.src have broken the build with  
> at least
> MSVC 7.1. The generated .c contains code like this:
>
> static PyObject *
> cfloat_power(PyObject *a, PyObject *b, PyObject *c)
> {
>     PyObject *ret;
>     cfloat arg1, arg2, out;
> #if 1
>     cfloat out1;
>        out1.real = out.imag = 0;
> #else
>      cfloat out1=0;
> #endif
>     int retstatus;
>
> As far as I know, this is not valid C. Ticket with patch here:
>
> http://projects.scipy.org/scipy/numpy/ticket/96
>
> By the way, how about setting up buildbot so that we can avoid these
> problems in future? I'd be very happy to maintain build slaves for  
> a few
> Windows configurations.
>
> Regards,
>
> Albert
>




More information about the NumPy-Discussion mailing list