[NumPy-Tickets] [NumPy] #1337: error npy_cdouble definition is not compatible with C99 complex definition

NumPy Trac numpy-tickets@scipy....
Wed Mar 30 16:08:53 CDT 2011


#1337: error npy_cdouble definition is not compatible with C99 complex definition
------------------------+---------------------------------------------------
 Reporter:  mayzel      |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  numpy.core  |     Version:  1.4.0rc1   
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by pv):

 The GCC version is quite venerable. Quickest fix would be to upgrade it.

 The error message seems a bit misleading, since, reading
 `numpy/core/setup.py`, as far as I see this doesn't have much to do with
 C99 -- it's just a check to ensure that `sizeof(struct { float_t real;
 float_t imag; }) == 2*sizeof(float_t)`. Essentially all Numpy functions
 dealing with complex numbers assume this.

 One could maybe supplement Numpy's complex definitions with some
 (compiler-specific) packing pragmas. I'm not sure it would be enough,
 though.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1337#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list