[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pthreads on OpenBSD 2.7
On Sat, May 26, 2001 at 04:45:29PM -0600, Henry, Brad ERM wrote:
> 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
> /usr/include/pthread.h
>
> any ideas? im sure it's something simple.
>
> speaking of which, does anyone have any sample code for using pthreads in
> OpenBSD?
>
> Thanks in advance,
> Brad
>
it's -pthread -- considered upgrading?
--
Mark Grimes <obecian@openbsd.org>