john carter wrote:
>> hi
> when i compile the file below using gcc abthread.c I get the following type of errors .
>> /tmp/cc4WfL0U.o(.text+0x6b) undefined reference to pthread_create
> /tmp/cc4WfL0U.o(.text+0xd7) undefined reference to pthread_join
[snip]
gcc -o threads threads.c -lpthread
works for me.
T.
--
Thomas Bridge 26 Upper Fitzwilliam St.,
Senior Hostmaster/Sysadmin, Dublin 2,
VIA NET.WORKS Ireland. Ph: +353 1 6763600
thomas.bridge at via-net-works.ie Fax: +353 1 6627674
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!