我使用的是mlpack库,它运行在Armadillo线性代数库之上。引用debug.hpp文件中的行时抛出异常,如下所示:
//! 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)); }
}带着这个消息:Exception thrown at 0x00007FFFEEC912DE (vcruntime140.dll) in tutorial.exe: 0xC0000005: Access violation reading location 0x0000019B35203060.
关于如何阅读此错误消息以及我能做些什么,有什么建议吗?谢谢。
发布于 2020-12-10 13:11:54
如果您还没有,请尝试安装visual studio 2015的x64和x86。
如果仍然不能工作,请检查编译设置:要么需要使用/MT标志进行静态编译,要么需要使用/MD标志进行动态编译。
此标志位于Project properties/ C/C++ / Code generation下。
https://stackoverflow.com/questions/63887258
复制相似问题