[maemo-developers] Threads

From: Ian Key ian_key at yahoo.com
Date: Thu Dec 6 13:04:53 EET 2007
You're a star :)

And I'm forgetful!!! 

Thanks

----- Original Message ----
From: Binary Chen <binary.chen at gmail.com>
To: Ian Key <ian_key at yahoo.com>
Cc: maemo-developers at maemo.org
Sent: Thursday, 6 December, 2007 10:52:38 AM
Subject: Re: Threads

On Thu, 2007-12-06 at 02:48 -0800, Ian Key wrote:
> (18:48 CST)
> 
> 
> Hi,
> 
> I'm relatively new to this and looking to use threads. I have
 included
> pthread.h and using the cs2005q3.2-glibc2.5-arm toolchain. The
> following code won't compile, I get the following error:
> 
> main.o: In function `main':/home/ikey/bob/fred/main.c:679: undefined
> reference to `pthread_create'
> :/home/ikey/bob/fred/main.c:680: undefined reference to
> `pthread_create'
> :/home/ikey/bob/fred/main.c:683: undefin 

You must link you program with -lpthread.







      __________________________________________________________
Sent from Yahoo! - the World's favourite mail http://uk.mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20071206/1cc49dfa/attachment.htm 
More information about the maemo-developers mailing list