I'm trying to use an open source library http://arma.sourceforge.net for linear algebra calculations. Some of the functions in Armadillo like pinv use LAPACK. I've written a very simple piece of code to use Armadillo to calculate pinv, but it produces a runtime error. This is probably because I do not have LAPACK linker flags in the sln file.
#include <iostream>
#include "armadillo"
using namespace arma;
using namespace std;
int main(int argc, char** argv)
{
mat A = rand<mat>(4,5);
mat pinverse = pinv(A);
A.print("A=");
return 0;
}