VS2019 Boost.Python封装C++库学习记录
比较简单,仅供小白参考哈。 本人安装的是Python3,安装目录为C:\Python37; 1.下载boost库在windows下通过b2.exe自己尝试编译库文件,编译方法可参考本文。 boost库下载链接:下载链接 boost库编译方法:boost库编译方法 2.打开VS2019,新建类型为dll动态链接库的项目,起名TheAPP,测试程序如TheAPP.cpp,内容如下: #include "pch.h" #include #include char const* greet() { return "hello, world"; } int Add(int Num) { Num +
下载地址
用户评论