I am trying to use Blaze C++ Library so I downloaded this library and successfully added to my project and used basic functionalities , but for extra functionalities I have to add BLAS and LAPACK library too. so i downloaded these packages .lib and .dll files. I did these:
1 - Project >> Linker >> General >> Additional Library Directories : I defined the path contains .dll files
2 - Project >> Linker >> Input >> Additional Dependencies : I defined the path contains .lib files
but when I try below code I receive some errors:
Code
#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);
}
Errors
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
what should have I do ?