making extension with MinGW on Windows

Gerhard Häring gh at
Fri Aug 29 18:44:12 CEST 2003

Sun Wei wrote:
> I got this error:
>     undefined reference to `_imp___Py_NoneStruct'
> But when I used VC++, everything is ok, why???

You're using distutils to compile, right? It not, please try again using 

If it still fails, can you post a minimal example source code that fails 
for you?

-- Gerhard

More information about the Python-list mailing list