[Numpy-discussion] Numpy trunk and 1.4.x branch fail to build with VS2008

Charles R Harris charlesr.harris at gmail.com
Sat Nov 28 14:29:24 EST 2009


On Sat, Nov 28, 2009 at 12:21 PM, Charles R Harris <
charlesr.harris at gmail.com> wrote:

>
>
> On Sat, Nov 28, 2009 at 12:07 PM, Christoph Gohlke <cgohlke at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20091128/52b755ff/attachment.html>


More information about the NumPy-Discussion mailing list