Everything worked and compiled fine until I #include <unistd.h>
(this is the single modification in my cpp) which completly breaks everything:
test.cpp:173:33: error: no matching function for call to ‘std::thread::thread(, int, int, int)’ std::thread t1(read, 1, 0, 3), ^ test.cpp:173:33: note: candidates are: In file included from test.cpp:6:0: /usr/include/c++/4.8/thread:133:7: note: template std::thread::thread(_Callable&&, _Args&& ...) thread(_Callable&& __f, _Args&&... __args)
[200 more similar lines]
Without #include <unistd.h>
everything works and compiles but I need it for https://stackoverflow.com/a/6856689/1879409
Note: I installed ncurses before via apt-get, maybe this broke my env?