pybind11 work with c++
参考:
https://blog.csdn.net/weixin_44244190/article/details/124977114
vs c++选择dll项目,同时关闭pre compiler header: 方法:
https://stackoverflow.com/questions/54101922/how-do-i-fix-unexpected-end-of-file-error-with-pch-h
https://pybind11.readthedocs.io/en/stable/
先思考cmake的问题:
https://www.youtube.com/watch?v=_aiS4eqV7j4&ab_channel=Hacked
接着思考dll的问题:
https://www.youtube.com/watch?v=auNPlHYB4ss&ab_channel=Code%2CTech%2CandTutorials
B站视频: