I'd like to invoke PySocketModule_ImportModuleAndAPI function defined in socketmodule.h in my Python C-extension.
Asked
Active
Viewed 156 times
2 Answers
0
Sure. There's even some documentation in the socketmodule.h as to how to do it:

Nathan Binkert
- 8,744
- 1
- 29
- 37
0
I had a similar problem and resolved it by:
- Adding the Modules\ directory (from your Python source) to the C/C++ Additional Include Directories.
- #include "socketmodule.h"
Don't know if this is the best solution, but it worked for me!

Nebel22
- 478
- 8
- 17