MLPACK | Compile Time Issue | Linux

57 Views Asked by At

I have followed this documentation to set up mlpack on my pc. I have compiled the Covariance Computation code.

g++ covariance.cc -o a -fopenmp -std=c++11

After compiling I got the following errors.

enter image description here enter image description here

What should I do?

1

There are 1 best solutions below

0
On BEST ANSWER

Issue Resolved

g++ covariance.cc -o a -fopenmp -lmlpack -larmadillo

If you still get error check if armadillo prerequisites, BLAS or OPENBLAS and LAPACK are installed and configured.

sudo apt install cmake libopenblas-dev liblapack-dev

You can download the latest and stable version of Armadillo from here.

Blog on armadillo installation instruction for different OS.