This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: pthread
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Alberto Simões/EPL <albie at alfarrabio dot di dot uminho dot pt>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 2 Sep 2002 13:45:12 -0400 (EDT)
- Subject: Re: pthread
On Mon, 2 Sep 2002, [iso-8859-1] Alberto Simões/EPL wrote:
> It seems that with the -pthread option I need too a -lpthread.
> This with gcc 3.2!
What evidence do you have that libpthread isn't linked? On what platform?
I tried a simple test on GNU/Linux:
echo "int main(void){return 0;}" >t.c && gcc -pthread t.c && ldd a.out
Output is:
libpthread.so.0 => /lib/libpthread.so.0 (0x000002000002e000)
libc.so.6.1 => /lib/libc.so.6.1 (0x000002000005e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000020000000000)
Looks OK to me.
Jeff