On Mon, 3 Nov 2003, Vitor Renato Alves de Brito wrote: > > Hi, > > With g++: > > # g++ -o timetest timetest.c -lpthread > timetest.c: In function `void tmsleep(int)': > timetest.c:77: `usleep' undeclared (first use this function) > timetest.c:77: (Each undeclared identifier is reported only once for each > function it appears in.)
#include <unistd.h> But this must work in a sane gcc/pthread setup: $ gcc -o timetest timetest.c -lpthread - Davide - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
