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.

_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to