pthread

Shaun W. Grogan kg4gkg at charter.net
Sat Apr 12 12:38:42 PDT 2003


Well the main.c calls for pthread_create and pthread_join.  Do I need to
change that to something else?
----- Original Message -----
From: "Markie" <markie at notwentytwo.freeserve.co.uk>
To: "Shaun W. Grogan" <kg4gkg at charter.net>
Cc: <freebsd-questions at freebsd.org>
Sent: Saturday, April 12, 2003 1:03 PM
Subject: Re: pthread


> I think you need to compile with -pthread, not -lpthread like Linux
uses...
> maybe :)
>
> ----- Original Message -----
> From: "Shaun W. Grogan" <kg4gkg at charter.net>
> To: <freebsd-questions at freebsd.org>
> Sent: Saturday, April 12, 2003 5:51 PM
> Subject: pthread
>
>
> > 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'
> >
> > _______________________________________________
> > freebsd-questions at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
> >
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list