Date: Sun, 9 Mar 2003 23:53:37 +0100 From: Martin Kulas <coolaz@web.de> To: Aaron Walker <ka0ttic@cfl.rr.com> Cc: freebsd-questions@freebsd.org Subject: Re: undefined reference to 'pthread_detach' Message-ID: <20030309225337.GA636@thunderBSD> In-Reply-To: <1047120959.3805.4.camel@ka0ttic> References: <1047120959.3805.4.camel@ka0ttic>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 08, 2003 at 05:55:58AM -0500, Aaron Walker wrote: > I was writing a little test threads program, and when I try to compile I > get this: > > <ka0ttic :~/code>$gcc -o mttest mttest.c -lpthread > /tmp/cco18ppz.o: In function `thread_func': > /tmp/cco18ppz.o(.text+0xd2): undefined reference to `pthread_detach' > <snip> There is no lib called pthread: use -pthread instead (see man pthread for more) martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030309225337.GA636>