Re: thread library

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

 



Hi,

>
> I'm writing multithread application on the top of the
>  kernel. I'm using functions in pthread.h. WHere can 
> I findthe object file for thread library to link at 
> the linking time. I searched for file pthread.o in 
> linux machien I couldn't find it.  
>

use -l option while linking, to link with lib.
eg. prompt# gcc myapp.c -o myapp -l pthread

niTin



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux