C++ threading wrapper g++ example.cpp src/thread.cpp -Iinclude -std=c++11 -lpthread or mkdir build cd build cmake .. make ./thread_example