In the latest version of goptical-1.0, the following files fail to build:
./goptical_core/tests/test_2d_plot.cc
./goptical_core/tests/test_rendering.cc
with the error:
error: ‘sleep’ was not declared in this scope
sleep(5);
A solution is to add
#include <unistd.h>
to the header of each file, as otherwise sleep is not defined.
--
Aaron Webster