On Sat, Nov 28, 2009 at 12:21 PM, Charles R Harris < charlesr.har...@gmail.com> wrote:
> > > On Sat, Nov 28, 2009 at 12:07 PM, Christoph Gohlke <cgoh...@uci.edu>wrote: > >> Changing *_datetime_strings[] to **_datetime_strings in descriptor.h >> results in the following compiler error: >> >> numpy\core\src\multiarray\descriptor.c(472) : error C2372: >> '_datetime_strings' : redefinition; different types of indirection >> >> numpy\core\src\multiarray\descriptor.h(16) : see declaration of >> '_datetime_strings' >> >> > The problem is that the bit in the header looks like a declaration. Try > commenting out the line like so: > > /*NPY_NO_EXPORT char *_datetime_strings[];*/ > > In case that wasn't precise enough, it should look like this: #ifdef NPY_ENABLE_SEPARATE_COMPILATION extern NPY_NO_EXPORT char *_datetime_strings[]; #else /*NPY_NO_EXPORT char *_datetime_strings[];*/ #endif Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion