[maemo-developers] Threads
From: Binary Chen binary.chen at gmail.comDate: Thu Dec 6 12:52:38 EET 2007
- Previous message: Threads
- Next message: Threads
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: Threads
- Next message: Threads
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]