This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Reini Urban wrote:extern __declspec(dllexport) cannot be used as constant during compile-time. => "initializer element is not constant" cygwin auto-import feature get's that right at link-time.
This is needed for the constant (compile-time) resolution of PyObject_HEAD_INIT(&PyType_Type) in a typical PyTypeObject struct.
I believe the commonly accepted solution is to change this to PyObject_HEAD_INIT(NULL) in the struct.
http://starship.python.net/crew/mwh/toext/node20.html
Indeed. That sounds better. -- Reini Urban
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |