Subj : Re: compiling for pthreads on AIX 5.2L To : comp.programming.threads From : fred Date : Mon Mar 07 2005 01:10 pm 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: #include main () { exit (0); } compiled thusly: gcc -pthread -o fred.o fred.c Here's a sample of the errors I'm getting: 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 AFAICS this is the correct way to invoke GCC on AIX 5.2. I can't see what would be going wrong here unless thre's something wrong with the system. It's a brand new box, perhaps there are packages that aren't installed that need to be? AIX setup seems a black art, and if there are things not installed (parts of BOS, e.g. other than libm.a which I've already installed) I don't know how to tell. As always, advice will be appreciated! .