sorry for i forget another strange thing.
look the following too lines
gcc -lgthreads test.c -ot1
gcc -lgthreads test.c -ot2 -L /usr/lib
tow command can pass.but only the second command can run.
i don't know why. can anybody explian it?
i have met the same problem,but now i overcome it!
i found that cc or CC is too poor to compile the programs with multithread.
when i use gcc,it helps me to compile my test programs!
so you can try it!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.