Re: signals to threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 24, 2003 at 10:49:39PM -0800, Gordon Messmer wrote:
> anil garrepally wrote:
> >
> >I am using pthread_kill() sys call by including pthread.h, but
> >compiler is saying undefined reference.
> 
> gcc -lpthread -o exe src.c

Actually, according to: 
	http://homepage.mac.com/dbutenhof/Threads/ThreadBuild.html
the correct command would be:
	gcc -pthread -o exe src.c

Note, the page I refer you to is maintained by David Butenhof, the 
author of one of the very best books on programing posix threads, a
member of the posix committee that wrote the standard, and a prolific
contributor to comp.programming.threads.

-- 
---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx -----------------------------
                      The eyes of the Lord are everywhere, 
                    keeping watch on the wicked and the good.
----------------------------- Proverbs 15:3 (niv) -----------------------------

Attachment: pgp00793.pgp
Description: PGP signature


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux