Note that nowadays the easiest way to build an extension may be to write a distutils setup script, and then do 'setup.py build_ext'. This will automatically get it right, you can also build a debug version, and there are other benefits as well. Thomas