Hi;

Thanks for the reply.  I tried to compile the simple program exactly as you 
had it and got the same errors: 

# gcc -o pt_test ./pt_test.c
In file included from ./pt_test.c:1:
/usr/include/pthread.h:666: error: expected ')' before '*' token
/usr/include/pthread.h:669: error: expected ')' before '*' token
[[snip]]
/usr/include/pthread.h:710: error: expected ')' before '*' token

I'm unsure how to proceed from here.  Does that mean that gcc doesn't like 
the AIX headers?  Would downloading a different version of gcc work?  There 
are something like four AIX systems here, all 5.3, and none of them have a 
compiler purchased from IBM... 

Any hint on how to proceed will be greatly appreciated.

On Tuesday, August 28, 2012 7:50:02 PM UTC-5, JB wrote:
>
> 1) pthreads_op.c calls pthread_create() and pthread_detach(). 
> Find out which AIX library implements these functions, and the 
> corresponding header file should be included.
>
> 2) Judging from the error message below, I doubt if the system was 
> corrupted in some way
>               /usr/include/pthread.h:666: error: expected ')' before '*' 
> token
>
> Try compile the following simple program and see if it passes. 
> #include <pthread.h>
> int main()
> {
>     pthread_t lthread;
>     int ret = 0;
>
>     return(ret);
> }
>
>

Reply via email to