I use armadillo
library. somewhere I get this exception:
error: Mat::init(): size is fixed and hence cannot be changed
terminate called after throwing an instance of 'std::logic_error'
what(): Mat::init(): size is fixed and hence cannot be changed
Aborted (core dumped)
I know why. But I dont know where.
Is there any way to obtained the line causing this problem? is valgrind
or any other tool able to do that?
Update:
compile code:
g++ -g -Wall -Wfatal-errors -Wextra -std=c++11
main.cpp -lboost_filesystem -lboost_system