Install Compiler sudo apt-get install g++-8 -y Compile the program g++-8 -pthread simple_hello_world.cpp -o thread