Documents __thread
yet my g++ complains that __thread is not supported on my arch (Leopard on Macbookpro).
Why is this? And how do I get around it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe that page is just an Apple stylesheet slapped on the standard GCC manual. Notice the
.soinstead of.dylibin Mac OS X.So it’s entirely possible that gcc on Mac doesn’t support
__thread. You need to usepthread_setspecificmanually.(This problem has been filed as a bug.)