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 distutils. If it still fails, can you post a minimal example source code that fails for you? -- Gerhard