Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA19146; Fri, 9 Feb 96 04:23:38 EST
Received: from arl-mail-svc-1.compuserve.com by MIT.EDU with SMTP
	id AA23209; Fri, 9 Feb 96 04:23:26 EST
Received: from none.compuserve.com (ad62-010.compuserve.com [199.174.191.10]) by arl-mail-svc-1.compuserve.com (8.6.10/8.6.9) with SMTP id EAA15872.; Fri, 9 Feb 1996 04:23:39 -0500
Message-Id: <311B1372.3636@compuserve.com>
Date: Fri, 09 Feb 1996 10:27:15 +0100
From: Fabien SENNERON <100656.502@compuserve.com>
Organization: Ubi Studio
X-Mailer: Mozilla 2.0b5 (Win95; I)
Mime-Version: 1.0
To: proven@MIT.EDU
Subject: Linking libtphread.a
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi, I'm Fabien from France...

	I'm very interested in using pthread library on Linux but I had 
find some problems while linking a little application with this library.

	In fact, I found the include files and the libpthread.a file in 
the package libc-5.2.16-bin.tgz. So, I wrote a little program wich 
sounds like that:

#include<stdio.h>
#include<stdlib.h>
#include<pthread.h>

void   *Thread_Funct(void *);
struct pthread_t *thread1,*thread2;
...
main()
{
pthread_create(thread1,NULL,Thread_Funct,NULL);
...
}

	No problems come from the compilation but the linking process 
respond:

     undefined symbol: pthread_create
	
	My command line is the following: 
	         'gcc Test.c -lpthread'
  	    or   'gcc -c Test.c' and 'ld Test.o -lc -lpthread'

	so, my question is this one: How make the binary file ?

		Thanks for all. 
				Fabien SENNERON
				100656.502@compuserve.com
				Ubi Studios (France)
