Re: [ProgSoc] C and threads question

Roland Turner (raz@nospam.arrakis.com.au)
Sat, 06 Dec 1997 13:17:14 +1100


Bart Bunting wrote:

> tip $gcc -g thread.c
> /tmp/cca005451.o: In function `main':
> /home/bart/c/thread.c:14: undefined reference to `pthread_create'
> /home/bart/c/thread.c:19: undefined reference to `pthread_create'
> /home/bart/c/thread.c:24: undefined reference to `pthread_join'
> /home/bart/c/thread.c:25: undefined reference to `pthread_join'
> /home/bart/c/thread.c:27: undefined reference to `do_wrap_up'

Add a -lpthread perhaps?

- Raz

--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.

This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>