title: armadillo inverse problem in C++ (windows,Visual Stdio 2017)
body: <p>I want to use armadillo C++ in Visual Stdio of Windows platform, but after I configure the armadillo environment in Visual Stdio, everything is right until I use the matrix inverse function. Visual Stdio reports errors like "error: inv(): use of ATLAS or LAPACK must be enabled". I don't know what's going on and how to fix it so that I can use the inv() or matrix.i() function. Any help will be welcomed, please.</p>
  
  <p>I use C++ to write my code, and the environment is Visual Stdio 2017 in Windows, the armadillo-9.600.5.  I have </p>
  
  <ol>
  <li><p>added the three libs "blas.lib，libf2c.lib，lapack.lib" to the additional dependencies of Visual Stdio.</p></li>
  <li><p>added the including dirtionary of armadillo to the VC++ -> include path of Visual Stdio. </p></li>
  <li><p>commented the following code in \Armadillo\include\armadillo_bits\config.hpp to use lapack and blas</p></li>
  </ol>
  
  <p>#define ARMA_USE_LAPACK </p>
  
  <p>#define ARMA_USE_BLAS</p>
  
  <p>But it still reports "std::logic_error" in debug.hpp, and "error: inv(): use of ATLAS or LAPACK must be enabled" in command line.</p>