I was trying to run the included “class” example for python in visual studio 2008. When building the pyd, I linked the project back to python27_d.lib since it complained it couldn’t find the file. That is the only change I made to the settings in the project file included. The build was successful but when I tried to do “import example” in python (I used python_d.exe instead since I built the debug version), it gave me “ImportError: No module named _example”. However, I can see _example.pyd being in the same folder.
On the other hand, if I build the example files with the release option in the visual studio, I can import the library without errors.
Can someone explain why the debug version is having problems? Thanks.