[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pthreads on OpenBSD 2.7

Hello, I have an OpenBSD 2.7 system, and I am trying to access the pthread
library. The pthreads man page states
using the compiler option -lpthread, but when i try

cc -c hello.c
cc -o hello hello.o -lpthread 

cc returns

ld: -lpthread: no match
collect2: returned 1 exit status

I have installed all of the 2.7 packages, and pthread.h resides in

any ideas? im sure it's something simple.

speaking of which, does anyone have any sample code for using pthreads in

Thanks in advance,