On Fri, Mar 12, 2004 at 11:16:03AM -0600, John Thompson wrote:
Can you try compiling the test program (config/pthread.c) with,
cc -lpthread -g -Wall -o pthread pthread.c
and tell me what you get?
Sure:
-bash-2.05b$ cc -I/usr/pkg/include -lpthread -g -Wall -o pthread pthread.c pthread.c: In function `worker_thread': pthread.c:29: warning: implicit declaration of function `pthread_testcancel' pthread.c: In function `main': pthread.c:58: warning: implicit declaration of function`pthread_cancel' ld: cannot find -lpthread
^^^^^^^^^^^^^^^^^^^^^^^^^
Try:
cc -I/usr/pkg/include -L/usr/pkg/wotsit -lpthread -g -Wall -o pthread
Paul