WIndows下VS2013调用LIB访问Python

WIndows下VS2013调用LIB访问ython

 

1、DLL文件编译

-1)项目属性:无main函数

WIndows下VS2013调用LIB访问Python

WIndows下VS2013调用LIB访问Python

0)编译环境:Debug x64

WIndows下VS2013调用LIB访问Python

1) C++环境

WIndows下VS2013调用LIB访问Python

2)Lib库依赖

WIndows下VS2013调用LIB访问Python

3)头文件修改:Python的include目录

WIndows下VS2013调用LIB访问Python

WIndows下VS2013调用LIB访问Python

WIndows下VS2013调用LIB访问Python

4)编译结果:项目的上一级目录

WIndows下VS2013调用LIB访问Python

WIndows下VS2013调用LIB访问Python

 

2、LIB调用

0)项目设置为Debug x64,同上。

1)设置LIB文件

WIndows下VS2013调用LIB访问Python

 

3、运行结果截图

WIndows下VS2013调用LIB访问Python