g++ commands
g++ -Wl,--no-as-needed -std=c++11 -pthread threadcpp.cc ## For compiling g++ code with <thread> header.