This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]