This application makes use of pthreads from the pthread library. Add the pthread library as follows:
Select the ps_pl_linux_app, and select UserConfig.cmake under Settings.
Refer to the following figures to add the pthread library.
Click OK in both the windows.
Click the application and then select Build to build the application.