美文网首页
错误 1 error LNK1104: 无法打开文件“pytho

错误 1 error LNK1104: 无法打开文件“pytho

作者: Denny_sun | 来源:发表于2017-08-22 20:01 被阅读0次

    在windows10安装opencv时,执行cmake之后,用vs2013打开工程,在debug下,生成INSTALL会出现

    错误 1 error LNK1104: 无法打开文件“python35_d.lib” 。

    参照网上的解决办法,是将目录Python35\include下的pyconfig.h文件中的

    #ifdefined(_DEBUG)

    //# pragma comment(lib,"python35_d.lib")

    #pragmacomment(lib,"python34.lib") // no debug lib in python distribution

    #elif...

    #ifdef _DEBUG

    //# define Py_DEBUG

    #endif

    黑体部分注释掉即可。不知会不会产生其他错误,现在标记一下。

    相关文章

      网友评论

          本文标题:错误 1 error LNK1104: 无法打开文件“pytho

          本文链接:https://www.haomeiwen.com/subject/ndtrdxtx.html