Undefined reference to pthread_create

后端 未结 5 756
北荒
北荒 2021-01-12 09:06

I have this code:

#include 
#include 

void* cuoco(void* arg)
{
    fprintf(stderr,\"Inizio codice cuoco\\n\");
    fprintf(s         


        
5条回答
  •  一向
    一向 (楼主)
    2021-01-12 09:31

    found the solution guys :D just go to settings >> compiler >> linker tab >>add lib

    go to drive and go to lib folder and find x86_64_linux_gnu and find pthread enjoy :)

提交回复
热议问题