Python中出现error LNK2019无法解析的外部符号 _PyCallable_Check

#include
#include
#include
using namespace std;
int main()
{
Py_Initialize();
if (!Py_IsInitialized())
{
return -1;
}
PyRun_SimpleString("import sys");
PyRun_SimpleString("sys.patth.append('.\')");

PyObject *pName, *pModule, *pDict, *pFunc;
wstring str = L"statistic_word";
wstring_convert<codecvt_utf8<wchar_t>> conv;
string sr = conv.to_bytes(str);

pName = PyUnicode_FromUnicode(str.c_str(),str.size());
pModule = PyImport_ImportModule(sr.c_str());

if (!pModule)
{
    cout << "can't find statistic_word.py" << endl;
    return -1;
}

pDict = PyModule_GetDict(pModule);
if (pDict)
{
    return -1;

}
pFunc = PyDict_GetItemString(pDict,"cut_word");
if (!pFunc || !PyCallable_Check(pFunc))
{
    cout << "can;t find function [cut_word]" << endl;
    return -1;
}
PyEval_CallObject(pFunc,NULL);
Py_Finalize();
system("pause");
return 0;

}


python对应的lib库文件有没有导入工程

项目->属性->配置属性->连接器->输入->附加依赖项 加上lib的名字,如aa.lib
项目->属性->配置属性->连接器->常规->附加库目录 加上lib所在目录的路径,如e://

在哪找到python对应的lib库文件啊