PEP 218 Re: ANN: set-0.1 module available

Sandy Norton sandskyfly at hotmail.com
Fri May 17 00:11:27 EDT 2002


BTW, this extension does not compile correctly on with Visual C++

I get the following error message after doing a 'python setup.py
build'

running build
running build_ext
building 'set' extension
set.c
set.c(1214) : error C2099: initializer is not a constant
set.c(1216) : warning C4047: 'initializing' : 'int ' differs in levels
of indirection from 'char [4]'
set.c(1217) : warning C4047: 'initializing' : 'char *' differs in
levels of indirection from 'unsigned int '
set.c(1219) : warning C4047: 'initializing' : 'int ' differs in levels
of indirection from 'void (__cdecl *)(struct _object *)'
set.c(1224) : warning C4047: 'initializing' : 'int (__cdecl *)(struct
_object *,struct _object *)' differs in levels of indirection from
'struct _object *(__cdecl *)(struct _object *)'
set.c(1225) : warning C4047: 'initializing' : 'struct _object
*(__cdecl *)(struct _object *)' differs in levels of indirection from
'struct PyNumberMethods *'
set.c(1226) : warning C4133: 'initializing' : incompatible types -
from 'struct PySequenceMethods *' to 'struct PyNumberMethods *'
set.c(1228) : warning C4047: 'initializing' : 'struct PyMappingMethods
*' differs in levels of indirection from 'long (__cdecl *)(struct
_object *)'
set.c(1235) : warning C4047: 'initializing' : 'struct PyBufferProcs *'
differs in levels of indirection from 'const int '
set.c(1236) : warning C4047: 'initializing' : 'long ' differs in
levels of indirection from 'char *'
set.c(1237) : warning C4047: 'initializing' : 'char *' differs in
levels of indirection from 'int (__cdecl *)(struct _object *,int
(__cdecl *)(struct _object *,void *),void *)'
set.c(1239) : warning C4047: 'initializing' : 'int (__cdecl *)(struct
_object *)' differs in levels of indirection from 'struct _object
*(__cdecl *)(struct _object *,struct _object *,int )'
set.c(1241) : warning C4047: 'initializing' : 'long ' differs in
levels of indirection from 'struct _object *(__cdecl *)(struct _object
*)'
set.c(1243) : warning C4047: 'initializing' : 'struct _object
*(__cdecl *)(struct _object *)' differs in levels of indirection from
'struct PyMethodDef *'
set.c(1251) : warning C4047: 'initializing' : 'long ' differs in
levels of indirection from 'int (__cdecl *)(struct _object *,struct
_object *,struct _object *)'
set.c(1252) : warning C4047: 'initializing' : 'int (__cdecl *)(struct
_object *,struct _object *,struct _object *)' differs in levels of
indirection from 'struct _object *(__cdecl *)(struct _typeobject *,int
)'
set.c(1254) : warning C4047: 'initializing' : 'struct _object
*(__cdecl *)(struct _typeobject *,struct _object *,struct _object *)'
differs in levels of indirection from 'void (__cdecl *)(struct _object
*)'
set.c(1324) : error C2099: initializer is not a constant
set.c(1326) : warning C4047: 'initializing' : 'int ' differs in levels
of indirection from 'char [13]'
set.c(1327) : warning C4047: 'initializing' : 'char *' differs in
levels of indirection from 'unsigned int '
set.c(1329) : warning C4047: 'initializing' : 'int ' differs in levels
of indirection from 'void (__cdecl *)(struct _object *)'
set.c(1344) : warning C4047: 'initializing' : 'struct PyBufferProcs *'
differs in levels of indirection from 'const int '
set.c(1350) : warning C4047: 'initializing' : 'long ' differs in
levels of indirection from 'struct _object *(__cdecl *)(struct _object
*)'
set.c(1352) : warning C4047: 'initializing' : 'struct _object
*(__cdecl *)(struct _object *)' differs in levels of indirection from
'struct PyMethodDef *'

It looks like the old 'initializer is not a constant' error... But
I've never confronted it before and I don't know how to fix it in this
case.

regards,

Sandy



More information about the Python-list mailing list