[tnelson@blacksburg Prog2]$ g++ -o go *.cpp -lpthread
Semaphore.h: In function void semaphore_init(Semaphore*):
Semaphore.h:108: error: NULL was not declared in this scope
Semaphore.h:108: error: pthread_mutex_init was not declared in this scope
Semaphore.h:111: error: NULL was not declared in this scope
Semaphore.h:111: error: pthread_cond_init was not declared in this scope
Semaphore.h: In function void semaphore_destroy(Semaphore*):
Semaphore.h:123: error: pthread_mutex_destroy was not declared in this scope
Semaphore.h:126: error: pthread_cond_destroy was not declared in this scope
Semaphore.h: In function int tw_pthread_mutex_unlock(pthread_mutex_t*):
Semaphore.h:233: error: pthread_mutex_unlock was not declared in this scope
Semaphore.h: In function int tw_pthread_mutex_lock(pthread_mutex_t*):
Semaphore.h:244: error: pthread_mutex_lock was not declared in this scope
Semaphore.h: In function int tw_pthread_cond_wait(pthread_cond_t*, pthread_mutex_t*):
Semaphore.h:255: error: pthread_cond_wait was not declared in this scope
Semaphore.h: In function int tw_pthread_cond_signal(pthread_cond_t*):
Semaphore.h:266: error: pthread_cond_signal was not declared in this scope
Semaphore.h: In function void do_error(char*):
Semaphore.h:280: error: perror was not declared in this scope
Semaphore.h:281: error: exit was not declared in this scope