On Fri Mar 17, 2000 at 03:07:14PM +0530, B.S.Manoj wrote:
> hi,
> Could anyone help me out of this Thread
> 
> I tried to compile this small sample code

[-----------snip---------]

> -------------------------------------------
> I tried to compile this using 
> 
> gcc Sample.c 
> 
> But I got some error like
> 
>  /tmp/ccoocq3y.o(.text+0x18): undefined reference to 'pthread_create'
> collect2 returned 1 exit status

Other then the obvious errors in the above code,
your problem is you are not linking vs the pthread
library.  What you want is compile with:

    gcc Sample.c -lpthread

What you also want to do is not cross post to tons
of mailing lists unrelated to your problem.  What do
your problems with running gcc have to do with the
kernel? or networking?  or admining?

 -Erik

--
Erik B. Andersen   Web:    http://www.xmission.com/~andersen/ 
                   email:  [EMAIL PROTECTED]
--This message was written using 73% post-consumer electrons--
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to