我正在使用Rust FFI来使用C语言当中的Intel MKL库。我已经成功的引入Intel MKL的绝对路径到build.rs当中,并且Rust可以查找到所有的MKL函数的使用方法。
但是当我cargo run时,会出现如下报错:
error: linking with cc failed: exit code: 1 | = note: "cc" "-m64" "-arch" "x86_64" "-L" ... "-lresolv" "-lc" "-lm" = note: Undefined symbols for architecture x86_64: "_cblas_sasum", referenced from: _third_input in libMKL-Rust.a(main.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
我是macOS系统,尝试很久了还是解决不了。
Rust链接C语言Intel MKL库报错
最新推荐文章于 2023-06-28 11:18:52 发布