问题描述
我正在尝试使用 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,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 *)" (?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
我该怎么办?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)