tmbdev / clstm

A small C++ implementation of LSTM networks, focused on OCR.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run-tests failed

WenchenLi opened this issue · comments

hi,
running ./run-tests gave me this, how can I fix this?

test-lstm.cc:81:3: error: use of undeclared identifier 'unlink'
  unlink("__test0__.clstm");
  ^
test-lstm.cc:114:3: error: use of undeclared identifier 'unlink'
  unlink("__test__.clstm");
  ^
2 errors generated.
scons: *** [test-lstm.o] Error 1
scons: building terminated because of errors.

>>>>>>> echo TEST FAILED
TEST FAILED

Adding
#include <unistd.h>
in test.lstm.cc
worked for me.