2005/12/20, ashraf_abussaud <>:
> Hi All,,,
> I am trying to do some threads on the TS-7200 i comiple the follwing
> code as a test and i get this error please tell me what is wrong
> because i am newbie to linux,,,
>
> Best Regards,,,
>
>
> Error :
> this is the error i got
> ------------------------------------------------
> ts7200:/home/Threads# ts7200:/home/Threads# gcc -o th
> mythread.c
> /tmp/ccVAjN1M.o: In function `main':
> /tmp/ccVAjN1M.o(.text+0x2c): undefined reference to
> `pthread_create'
> collect2: ld returned 1 exit status
> -------------------------------------------------
Try:
$ gcc -o th mythread.c -lpthread
Remeber that a simple 'Googling' around first would have give you this
answer in last than 5 minutes.
Regards,
Adriano
------------------------ Yahoo! Groups Sponsor --------------------~-->
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|