cpp-tips We recommend that you compile it under Linux using the g++ tool. For multi-threaded services, -pthread needs to be added. g++ main.cpp -o main -std=c++11 -pthread