Armadillo Exception Thrown when using mlpack

100 views Asked by At

I'm using the mlpack library which runs on top of the Armadillo linear algebra library. An exception has been thrown referring to the line in the debug.hpp file as shown below:

//! if state is true, abort program
template<typename T1>
arma_hot
inline
void
arma_check(const bool state, const T1& x)
  {
  if(state)  { arma_stop_logic_error(arma_str::str_wrapper(x)); }
  }

With the message: Exception thrown at 0x00007FFFEEC912DE (vcruntime140.dll) in tutorial.exe: 0xC0000005: Access violation reading location 0x0000019B35203060.

Any advice on how to read this error message and what I can do about it? Thanks.

1

There are 1 answers

0
Gigioz On BEST ANSWER

Try installing the x64 and x86 re-distributable for visual studio 2015, if you don't have them.

If it still doesn't work it check the compilation settings: either you need static compiling with /MT flag or dynamic compile with /MD flag.

This flag is under Project properties/ C/C++ / Code generation.