Errors linking Lapack to CodeBlocks

34 Views Asked by At

I am having issues running Armadillo library in my Code::Blocks 20.03 on Windows. I am always stuck on some kind of error and would really appreciate help.

I have downloaded the LAPACK libraries, the x64 dll and lib files for Ref BLAS, LAPACK and LAPACKE.

I have them placed in a suitable folder, I have: Linked the libraries in Settings>Linker Settings, added path\libblas.lib, liblapack.lib, liblapacke.lib. Linked the libraries in Project>Build options>Linker settings, added libblas.lib, liblapack.lib, liblapacke.lib. I have modified the armadillo config.hpp according to their readme file. The further that I got (the newest error) is:

||=== Build: Debug in 'project' (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lblas.lib|
ld.exe||cannot find -llapack.lib|
ld.exe||cannot find -llapacke.lib|
||error: ld returned 1 exit status|
||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 7 second(s)) ===|

But those aren't the names of the libraries that I have linked. I have no idea where they come from, I have not recieved this error prior to linking these libraries.

I would appreciate any helpful comments. All the readme-s and documentations to installing and linking libraries either don't exist for CB or are written for someone who already actually knows how to do this and I am literally doing this for the first time ever. I feel a strong urge to add "Get a Linux-based system" is not a helpful comment :) Thanks, I am getting desperate :)

0

There are 0 best solutions below