我正在尝试编译一个庞大的软件包,但这是我似乎无法解决的最后一道障碍。
我遇到了以下错误:
RNDiracDeterminantBase.cpp:(.text+0x22bf): undefined reference to `dgetrf_'
RNDiracDeterminantBase.cpp:(.text+0x2524): undefined reference to `dgetri_'
RNDiracDeterminantBase.cpp:(.text+0x3005): undefined reference to `dgetri_'
../../lib/libqmcwfs.a(RNDiracDeterminantBase.cpp.o): In function `qmcplusplus::RNDiracDeterminantBase::ratio(qmcplusplus::ParticleSet&, int, qmcplusplus::ParticleAttrib<qmcplusplus::TinyVector<double, 3u> >&, qmcplusplus::ParticleAttrib<double>&)':
RNDiracDeterminantBase.cpp:(.text+0x4156): undefined reference to `dgemv_'
RNDiracDeterminantBase.cpp:(.text+0x420f): undefined reference to `dger_'
谷歌透露这些参考资料是指英特尔的MKL库。然而,我不知道需要链接哪个文件。我已经尝试过libmkl_core.a、libmkl_gnu_thread.a、libmkl_blacs_intelmpi_lp64.a等文件。在/mkl/lib/intel64/目录下有大量文件可用。如果需要,可以发布更多信息。