How do you port an app that needs pthreads?

Joerg Sonnenberger joerg at britannica.bec.de
Wed Dec 15 01:31:50 PST 2004


On Wed, Dec 15, 2004 at 03:15:14AM +0000, Jonathon McKitrick wrote:
> What do I need to do to make a BSD-friendly build?
> 
> ui.o: In function `UI__TrackStdout':
> /usr/home/jcm/sitback-0.3.5p3/sitback/ui.c:504: undefined reference to
> `pthread_testcancel'
> *** Error code 1

Add -pthread to the linker flags.

Joerg





More information about the Users mailing list