Re: pthread_create

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

 



On Wed, 2002-02-27 at 21:59, David Stroupe wrote:
> I am trying to compile an app using threads.  I have pthread.h included 
> but during thew linking process I get this:
> 
> 626Test.o: In function `main':
> 626Test.o(.text+0x5e): undefined reference to `pthread_create'

that's badly documented in the man-pages here as well.
you have to link with the pthreads libraries, i.e. add -lpthread to your
linking process.

flo

-- 
flo at 0x17.cjb.net

The contraction of the World Wide Web continues, and another resource
that helps make learning about things possible is under an economic
threat.
 
 .''`.  
 : :' :  GNU/Linux
 `. `'  
   `-   

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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