import module under windows

Eric Co eric at jazzy.org
Mon Sep 3 00:33:30 EDT 2001


hi,

i write a C/C++ extension module under windows. it compile to be a 
dll, say spam.dll. then i use "import spam" to import this module to python. 
the problem is that my spam have to link with other dll that contain codes
with 
   __declspec( thread ) static char szFoo[_MAX_PATH];

so it crash due to the problem here:

http://support.microsoft.com/support/kb/articles/Q118/8/16.ASP

so i would like to know is it possible to build my spam.dll statically
into python21.dll?

thanks.
-Eric Co



More information about the Python-list mailing list