![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
fdd096030079
这个作者很懒,什么都没留下…
展开
-
error: expected constructor, destructor, or type conversion before ‘(’ token PYBIND11_MODULE
用pybind11做C++ 接口时候,发现出现这种错误,找了半天意识到是编译器没有找到pybind11的头文件.再后面发现我的系统CPLUS_INCLUDE_PATH没有包含pybind11的头文件安装路径. 主要是因为在不同电脑中切换环境,有时候在新的电脑上没有安装pybind11.解决办法:进入pybind11目录cmakemake -j6sudo make ...原创 2020-05-05 15:59:35 · 2272 阅读 · 0 评论 -
使用python调用openmpi编译的MPI 动态库报错:mca_base_component_repository_open: unable to open mca_patcher_overwri
最近,用python做C++编写的openMPI动态库接口,运行python脚本,报错如下:[pk:32466] mca_base_component_repository_open: unable to open mca_patcher_overwrite: /usr/lib/x86_64-linux-gnu/openmpi/lib/openmpi/mca_patcher_overwrit...原创 2020-04-23 14:23:18 · 5300 阅读 · 2 评论