Please look at the following code: It simply creates a thread.
printf("error creating thead");
void * thr(void *arg)
printf("Hi from thread");
This code, when compiled, makes the following complaint:
/tmp/ccq5LR1c.o: In function 'main':
/tmp/ccq5LR1c.o(.text+0x14): undefined reference to 'pthread_create'
I use linux kernel 2.2(caldera), and type 'cc' to compile the program. Please tell me what to do.