"initializer element is not constant"

emin.martinian at gmail.com emin.martinian at gmail.com
Tue May 30 16:55:17 EDT 2006


When trying to compile python extensions written in C using "python
setup.py build" on cygwin I get the following error:

foo.c: initializer element is not constant
foo.c: error: (near initialization for `FooType.ob_type')

I remember someone telling me a long time ago that this had something
to do with declspec and how dlls are imported on cygwin/python.  Can
someone give me a pointer to how to build python extensions on cygwin?

Thanks




More information about the Python-list mailing list