I wrote lines in ubuntu including the function pthread.An error raised:no referrence to the pthread_create;
Then I googled it ,install the glibc-doc but no change in the result.I can't still man the pages about the pthread family function. Someone knows what is the matter?Please help me.Thank you in advance!!
Undefined reference indicates that your linker cannot find the library containing the actual function body. The header will generally contain the function prototype; the library contains the actual code that does the actual work.
You need to link to the threading library. On the command line, probably something like