tmbdev / clstm

A small C++ implementation of LSTM networks, focused on OCR.
Apache License 2.0
819 stars 223 forks source link

run-tests failed #79

Open WenchenLi opened 8 years ago

WenchenLi commented 8 years ago

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
rolfmertig commented 8 years ago

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