0

我正在尝试使用 Blaze C++ 库,所以我下载了这个库并成功添加到我的项目中并使用了基本功能,但对于额外的功能,我也必须添加 BLAS 和 LAPACK 库。所以我下载了这些包.lib.dll文件。我做了这些:

1 - 项目>>链接器>>常规>>附加库目录:我定义的路径包含.dll文件

2 - 项目>>链接器>>输入>>附加依赖项:我定义的路径包含.lib文件

但是当我尝试下面的代码时,我收到一些错误:

代码

#include <iostream>
#include <blaze/Math.h>



using namespace blaze;


using namespace std;

int main()
{
    StaticMatrix<double,100,100> A;
    for (size_t i = 0; i < 100; i++)
    {
        for (size_t j = 0; j < 100; j++)
        {
            A(i, j) = i + j;
        }
    }
    blaze::DynamicMatrix<double, blaze::rowMajor> L, U, P;

    lu(A, L, U, P);
}

错误

1 - Severity    Code    Description Project File    Line    Suppression State
Error   LNK2019 unresolved external symbol dgetrf_ referenced in function "void __cdecl 
blaze::getrf(int,int,double *,int,int *,int *)" (?getrf@blaze@@YAXHHPEANHPEAH1@Z)   MyProject 
D:\C++\MyProject \MyProject \MyProject.obj  1   

2 - Severity    Code    Description Project File    Line    Suppression State
Error   LNK1120 1 unresolved externals  MyProject D:\C++\MyProject\x64\Debug\MyProject.exe  1   

我该怎么办?

4

0 回答 0