Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Apr 1998 15:31:03 +1000 (EST)
From:      John Birrell <jb@cimlogic.com.au>
To:        fritcher@calweb.com
Cc:        hackers@FreeBSD.ORG
Subject:   Re: pthread question
Message-ID:  <199804020531.PAA12611@cimlogic.com.au>
In-Reply-To: <Pine.BSF.3.95q.980401195848.28784A-100000@web2.calweb.com> from "Jason K. Fritcher" at "Apr 1, 98 08:12:11 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Jason K. Fritcher wrote:
> [jkf@sys1:~/src/thread]$ gcc -g -D_THREAD_SAFE -lc_r -static -o blah blah.c
> blah.c:22: Undefined symbol `_pthread_join' referenced from text segment
> blah.c:23: Undefined symbol `_pthread_join' referenced from text segment

Try putting the -lc_r after the -o blah. Is it possible that the linker
thinks that it has already searched libc_r before it gets to blah.o
so it doesn't go back to resolve references it finds in blah.o?

-- 
John Birrell - jb@cimlogic.com.au; jb@freebsd.org
CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804020531.PAA12611>