libmkl_scalapack_lp64.so: undefined reference to `MKL_SCALAPACK_INT'
When link with Intel® Math Kernel Library 10.2
update 2 on SGI* Workstation with Intel® Xeon processor, the following
error is reported:
libmkl_scalapack_lp64.so: undefined reference to `MKL_SCALAPACK_INT'
libmkl_scalapack_lp64.so: undefined reference to `Cdsendrecv'
The cause of this issue happens only when SGI's MPI library and libmkl_blacs_sgimpt_lp64.a library from MKL are used.
This is a known issue and this will be fixed in the future versions.
Workaround to fix this issue:
Compile a C source file with the below two lines and link it in addition to MKL:
#include
int MKL_SCALAPACK_INT = (int) MPI_INT;
一般链接so动态链接库,如果报错:undefined reference to `XXX'
说明动态库中XXX没有定义,可以使用nm/objdump命令查看该动态库的符号表,使用命令:
nm -t libxxx.so |grep XXX
查看,一般情况下XXX的描述都是U或者Undefine,只要写一个程序实现后打包至该动态库即可。
阅读(3638) | 评论(0) | 转发(0) |