Hi, I was doing the tutorial which is located in the following link precisely in order to become familiar with modifying codes and debugging in kaldi.
http://kaldi-asr.org/doc/tutorial_code.htmlBut after typing "make test " and hitting enter button, I encountered some compile error as follow.
matrix-lib-test.cc: In function ‘void kaldi::UnitTestAddVec()’:
matrix-lib-test.cc:4578:29: error: there are no arguments to ‘w’ that depend on a template parameter, so a declaration of ‘w’ must be available [-fpermissive]
Vector<Real> v(dim); w(dim); // two vectors the same size.
^
matrix-lib-test.cc:4578:29: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
matrix-lib-test.cc:4580:13: error: ‘w’ was not declared in this scope
InitRand(&w);
^
matrix-lib-test.cc:4586:20: error: ‘b’ was not declared in this scope
AssertEqual(a, b); // will crash if not equal to within
^
<builtin>: recipe for target 'matrix-lib-test.o' failed
make: *** [matrix-lib-test.o] Error 1
.
I don't know why this happened since I did everything according to tutorial. I would appreciate if someone could help me how to overcome this problem
it is worthy to know that I have installed kaldi about two years ago by loading files from github. So I think, it is up to date.