Subj : Re: compiling for pthreads on AIX 5.2L To : comp.programming.threads From : Bluejack Date : Mon Mar 07 2005 01:30 pm On 7 Mar 2005 13:10:25 -0800, wrote: > to follow up on my own posting, I've found some info on ibm's web site > showing options to GCC for multithread programs, and it doesn't help > any. Given this trivial program: > > In file included from fred.c:1: > /usr/include/pthread.h:556: error: parse error before '*' token > /usr/include/pthread.h:559: error: parse error before '*' token > /usr/include/pthread.h:563: error: parse error before '*' token > /usr/include/pthread.h:566: error: parse error before '*' token > /usr/include/pthread.h:569: error: parse error before '*' token > /usr/include/pthread.h:572: error: parse error before '*' token > /usr/include/pthread.h:575: error: parse error before '*' token > /usr/include/pthread.h:578: error: parse error before '*' token > /usr/include/pthread.h:581: error: parse error before '*' token > /usr/include/pthread.h:585: error: parse error before '*' token > /usr/include/pthread.h:588: error: parse error before '*' token I tried posting this earlier, but I don't think it went through. I don't know the answer to your question, but my methodology for this sort of thing is to check out what the errors are in pthread.h: I encountered something similar switching Linux distributions recently, and by examining the header files was quickly able to determine that I needed to define __USE_POSIX and __USE_UNIX98. The problem: certain standard functions and types were wrapped with these ifdef tests. So, unless someone has more specific answers for you, my recommendation is to dive right in and figure out what's actually wrong. -bluejack .