Subj : Re: compiling for pthreads on AIX 5.2L To : comp.programming.threads From : fred Date : Tue Mar 08 2005 07:49 am Patrick, thanks for the reply. According to the document "Using the GNU C/C++ compiler on AIX", found on IBM developerworks site, "-pthread" is the correct option to be using. whether I use a -o or a -c, the error is the same (thanks for pointing out that I was using the wrong flag, though. Duh). It complains about a series of lines in /usr/include/pthread.h, all of which reference pthread_rwlock_t. pthread_rwlock_t is mentioned only (of the files in /usr/include) in /usr/include/sync.h which also includes pthread.h. Replacing the include statement in the sample program with sync.h instead of pthread.h does not fix the problem, it merely adds more error messages. Doing find/grep thru the subdirectories of /usr/include/ I find that pthread_rwlock_t is defined in sys/types.h. sys/types.h is included near the top of pthread.h. So, my point wasn't so much to ask someone to debug it for me as to find out if anyone else has seen the problem and knew how to deal with it, or had suggestions on other ways to compile such programs on AIX. I'll continue to dig thru the headers to see what is preventing the compiler from seeing the definition of pthread_rwlock_t, as it does appear that it is unaware of that struct. .