Date: Mon, 7 Mar 2005 12:22:29 +0000 From: Jonathon McKitrick <jcm@FreeBSD-uk.eu.org> To: Chuck Swiger <cswiger@mac.com> Cc: freebsd-questions@freebsd.org Subject: Re: Which lib for pthreads? Message-ID: <20050307122229.GA36571@dogma.freebsd-uk.eu.org> In-Reply-To: <422BAB2E.9060703@mac.com> References: <20050305183226.GA47472@dogma.freebsd-uk.eu.org> <20050306011827.GE2272@dan.emsphone.com> <20050306213249.GA4624@dogma.freebsd-uk.eu.org> <20050306213955.GA11496@gothmog.gr> <20050306215500.GA5571@dogma.freebsd-uk.eu.org> <422BAB2E.9060703@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 06, 2005 at 08:15:26PM -0500, Chuck Swiger wrote: : Um. If you are compiling C++ code into an object file, you ought to use : c++ and not cc when linking, too. I'm using ${CC} in the makefile, and it seems to automagically choose the correct tool. : Also, you may not have relinked 'app'. Do an ldd on app and see whether it : has a dependency on libc_r? Try relinking app using -pthread against a : libplugina.so compiled with -pthread... That was the problem. I thought only the library with the thread calls needed to be linked with pthread. Apparently the app needs it as well. Jonathon McKitrick -- My other computer is your Windows box.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050307122229.GA36571>