Windows 10 x64 Python 3.4, 3.5, Anaconda3 4.2 - x64 SWIG 3.0.8, 3.0.10 MinGW32/64 - TDM-GCC-64 5.1.0-2, x86_64-5.3.0-win32-sjlj-rt_v4-rev0, x86_64-6.2.0-win32-sjlj-rt_v5-rev1 The code in C compiles fine, there are no warnings. But then, in the finished module, do not work C-API functions such as: PyList_Check PyDict_Check PyDict_Next PyObject *result = PyList_New(1); printf("%i \n", PyList_Check(result)); Check always returns zero, even if the object is created in the previous line. But PyMapping_Check works fine
I made a small correction to the project. But the essence has not changed. With Microsoft Visual C++ Build Tools everything is fine. But I would like to use the GCC.
Is this the fork of MinGW specially for Python? I didn't think it supported 3.5 yet, because of the different CRT. Also, I can't easily tell right now, but if you're using the libpython35.a that's included with the regular install, you might want to regenerate it. Nobody could agree on what tools should be used to generate it, so I picked one fairly blind and it may not be compatible with your tools (really it should just be regenerated if you want to rely on it, rather than shipping one, but that's where we're currently at).
SOLVED: I found a solution. It turned out that on the Windows x64 need to use '-DMS_WIN64' compiler option. Three days wasted. And although no one helped me, I felt that mentally you were with me, guys. Thank you! ;)
History
Date
User
Action
Args
2022-04-11 14:58:40
admin
set
github: 73051
2016-12-05 08:10:43
mifik
set
status: open -> closedresolution: not a bugmessages: +