动态错误module does not define init function (initsomething)
有问题。
当我使用Python2.7时一切正常,问题只出现在使用Python2.2编译时
输出格式为.pyd。
我的c++代码
#ifndef PyMODINIT_FUNC
#define PyMODINIT_FUNC void
#endif
extern "C" PyMODINIT_FUNC initsomething(void)
{
(void)Py_InitModule("something", methods);
}
目前没有回答
相关问题 更多 >
编程相关推荐