Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Apr 2003 11:24:40 -0400
From:      "Shaun W. Grogan" <kg4gkg@charter.net>
To:        <freebsd-questions@freebsd.org>
Subject:   Re: pthread
Message-ID:  <003d01c301d0$cd6aa6d0$6401a8c0@ranger187>
References:  <000501c30113$d1f72fb0$6401a8c0@ranger187> <1050179813.64457.82.camel@jake>

next in thread | previous in thread | raw e-mail | index | archive | help
Sorry, I have no idea what you are talking about.  :)  CCFLAGS???
----- Original Message -----
From: "Adam" <blueeskimo@gmx.net>
To: <freebsd-questions@freebsd.org>
Sent: Saturday, April 12, 2003 4:36 PM
Subject: Re: pthread


> On Sat, 2003-04-12 at 12:51, Shaun W. Grogan wrote:
> > I am trying to compile an application on FreeBSD 5 that was originally
> > written and tested on Linux.  It is bombing when calling for a function
> > pthread_create and pthread_join.  I see there is a man on my system for
> > pthread_create.3 but I see no way of enabling this function.  A search
of my
> > system for pthread_create turns up nothing but man pages.  Does anyone
have
> > any suggestions?  Below is the messgae I"m getting when compiling.
> >
> > /usr/home/shaung/tlf-0.8.19/src/main.c:527: undefined reference to
> > `pthread_create'
> > /usr/home/shaung/tlf-0.8.19/src/main.c:535: undefined reference to
> > `pthread_create'
> > /usr/home/shaung/tlf-0.8.19/src/main.c:542: undefined reference to
> > `pthread_join'
> > /usr/home/shaung/tlf-0.8.19/src/main.c:543: undefined reference to
> > `pthread_join'
> >
>
> Make sure you are including <pthread.h>, and when compiling you need to
> add -pthread on your $CCFLAGS ..
>
> --
> Adam <blueeskimo@gmx.net>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003d01c301d0$cd6aa6d0$6401a8c0>