python37.dll未在可执行文件中链接
发布于 2021-01-29 15:01:30
我用python扩展了c ++,但是exectuable不能在没有安装python的系统上运行。
#include "C:\.....python.h"
int main()
{
Py_Initialize();
PyRun_SimpleString("print("hello world")\n")
Py_Finalize();
return 0;
}
当我在未安装python的Windows系统上运行时,出现以下错误:
The code execution cannot proceed because python37.dll was not found. Reinstalling the program may fix the problem.
如何将python37.dll链接到可执行文件。
关注者
0
被浏览
69