如何解决rsmpi'mpi = 0.5.4'由于显然是拼写错误的函数调用而无法编译
cannot find function,tuple struct or tuple variant `MPI_Type_hvector` in module `ffi`
--> /home/zaylor/.cargo/registry/src/github.com-1ecc6299db9ec823/mpi-0.5.4/src/datatype.rs:212:18
|
212 | ffi::MPI_Type_hvector(count,blocklength,stride,oldtype.as_raw(),&mut newtype);
| ^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `MPI_Type_vector`
|
::: /home/zaylor/Documents/rust/primes_mpi/target/debug/build/mpi-sys-c8a00d923d3087b4/out/functions_and_types.rs:974:2
|
974 | pub fn MPI_Type_vector ( count : :: std :: os :: raw :: c_int,blocklength : :: std :: os :: raw :: c_int,stride : :: std :: os :: raw :: c_int,oldtype : MPI_Datatype,newtype : * mut MPI_Datatype,) -> :: std :: os :: raw :: c_int...
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ similarly named function `MPI_Type_vector` defined here
error: aborting due to previous error
For more information about this error,try `rustc --explain E0425`.
error: could not compile `mpi`.
这就是我得到的。我已经将货物清理干净,并且重建无济于事。我不确定问题出在这里是rsmpi还是ffi库。我知道rsmpi datatype.rs的git文件似乎具有正确的函数调用拼写。
有什么想法吗?
谢谢
泰勒。
解决方法
https://github.com/rsmpi/rsmpi/issues/64
很抱歉找到它。我的坏,我看起来不够远。我想这个问题很快就会得到解决。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。